Forum Replies Created
-
AuthorPosts
-
it worked! Now to get all of the sounds and animations to work correctly.
Thanks Mark.
perhaps I forgot to push last time, anyway try again.
I think you did. Last update on the develop branch was 4 or 5 days ago now. If I remember correctly.
I’ll try again. Hopefully it works this time.
Well, I tried everything you said Mark and still keep getting the same forward reference compiler error on media.
You are right, its with t_default_Media. I assumed it was the same error just cause I saw a forward reference error. humm… Any idea?
Yes, I tried it with 1.1.04 from itch.Iio and it does the same thing.
> Seriously though, you can right click it and select download.
funny way of responding to two different comments.
Seriously though, that video doesn’t play on my MacBook either way.
That video doesn’t load on my MacBook’s Safari.
Works fine here on my 2013 MacBook. How are you using it?
isn’t it always, the ones with the most demands are the ones with the least interest in supporting.
It should work. it works like this:
[/crayon]Monkey12345678910111213[crayon-5cbaa08f3c544498746794 inline="true" ]Function Main()Print ModVector(10,3)EndFunction ModVector:Float(value:Float, trueMod:Short)value = value Mod trueModIf value < 0 Thenvalue = value + trueModEndifReturn valueEnd FunctionYou should report it as a bug over at GitHub.
Welcome aboard!
Colorado In the house.
@impixi you are right. hahaha! At first I didn’t know why it wasn’t working. That’s because I have always used it with objects not integers or floats so I just assumed it was doing what it was supposed to. it works fine with objects not primitives. your solution solves it. I have to keep that in mind. unlikely I will use integers or floats in a list but who knows. Thanks!
It is still faster but not as I gave it credit for.
here! test E is way faster.
[/crayon]Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154[crayon-5cbaa08f44432392141241 inline="true" ]Using std..Class Collection<T>' Option AField Items := New List<T>' Option BMethod ToArray:T[]()Return Items.ToArray()End' Option CMethod All:List<T>.Iterator()Return New List<T>.Iterator(Items, Items.FirstNode())End' Option DOperator To<C>:List<C>()Return ItemsEnd'Option EMethod ToNode:List<T>.Node()Return Items.FirstNode()End MethodEndGlobal Collection_:Collection<Int>Function GenerateCollection(quantity:Int)Collection_ = New Collection<Int>For Local i := 1 To quantityCollection_.Items.Add(Cast<Int>(Rnd(0, 100)))NextPrint("Created: " + Collection_.Items.Count() + " items.")EndFunction TestA()' A' print the items based on list iterationFor Local i := Eachin Collection_.Items'Print("A: " + i)NextEndFunction TestB()' B' print the items based on the array overload methodFor Local i := Eachin Collection_.ToArray()'Print("B: " + i)NextEndFunction TestC()' C' print the items based on iteratorFor Local i := Eachin Collection_'Print("C: " + i)NextEndFunction TestD()' D' print the items based on castFor Local i := Eachin Cast<List<Int>>(Collection_)'Print("D: " + i)NextEndFunction TestE()'E'Print the Items based on NodeLocal node := Collection_.ToNode()While node.Value'Print("E: " + i.Value)node = node.SuccWendEnd FunctionClass Benchmark AbstractPrivateGlobal TimeStart:IntGlobal TimeEnd:IntGlobal TimeResult:IntPublicFunction Start()TimeStart = Millisecs()TimeEnd = 0EndFunction Stop()TimeEnd = Millisecs()TimeResult = TimeEnd - TimeStartEndFunction PrintResult()Print("Time Elapsed: " + TimeResult)EndEndFunction Main()Print "Processing ....."GenerateCollection(10000000)Print("Starting Test A")Benchmark.Start()TestA()Benchmark.Stop()Benchmark.PrintResult()Print("Starting Test B")Benchmark.Start()TestB()Benchmark.Stop()Benchmark.PrintResult()Print("Starting Test C")Benchmark.Start()TestC()Benchmark.Stop()Benchmark.PrintResult()Print("Starting Test D")Benchmark.Start()TestD()Benchmark.Stop()Benchmark.PrintResult()Print("Start Test E")Benchmark.Start()TestE()Benchmark.Stop()Benchmark.PrintResult()EndYea, that was it.
Thanks for testing it. Do you have the latest from Github either the Development or the Master version?
I think it has to do with the printing of the mouse events to the console. I will remove the print from the Touch input files to see if it solves it.
I will report back.
-
AuthorPosts