Now i'm VERY confused... Why it runs fine on LOVE and not on Lua?Robin wrote:...
Search found 22 matches
- Tue Jun 25, 2013 11:49 am
- Forum: Support and Development
- Topic: Random number?
- Replies: 46
- Views: 27039
Re: Random number?
- Tue Jun 25, 2013 9:56 am
- Forum: Support and Development
- Topic: Random number?
- Replies: 46
- Views: 27039
Re: Random number?
Can you print out the actual seeds you're using? Here it is: >lua -e "io.stdout:setvbuf 'no'" "random.lua" Generating 10000 random numbers with time generated seed using seed: 13721541256406 Result: Number 1 generated 967 times Number 2 generated 967 times Number 3 generated 987...
- Tue Jun 25, 2013 9:45 am
- Forum: Support and Development
- Topic: Random number?
- Replies: 46
- Views: 27039
Re: Random number?
For the third experiment, can you please run it once, then wait for some seconds and then run it again and show the output of these two runs? Sure... >lua -e "io.stdout:setvbuf 'no'" "random.lua" Generating 10000 random numbers with time generated seed Result: Number 1 generated...
- Tue Jun 25, 2013 9:19 am
- Forum: Support and Development
- Topic: Random number?
- Replies: 46
- Views: 27039
Re: Random number?
I am still curious to see an example, where patterns become visible. Curiously i was recently working on a particles system made with LuaGL that uses a lot of math.random, and the effect was always the same, i already deleted that code because it's ugly, but i made a code to exemplify that and to s...
- Tue Jun 25, 2013 1:33 am
- Forum: General
- Topic: Help on how to learn Lua/Love the best.
- Replies: 12
- Views: 8511
Re: Help on how to learn Lua/Love the best.
@tsturzl Lua do not have built in OO, the odd thing about every Lua OO is that is a workaround made most of times with metatables, which is such a pain in the ass... But if you really want it, there is libraries that make it a lot easier because it look like you're really creating objects, not copyi...
- Mon Jun 24, 2013 10:58 am
- Forum: Games and Creations
- Topic: This Is a Waste Of Time [TaWoT ][now beta5.1]
- Replies: 12
- Views: 6386
Re: This Is a Waste Of Time [TaWoT ]
U should do a retardard difficult, i ended it with -30000...
- Mon Jun 24, 2013 10:26 am
- Forum: Support and Development
- Topic: Random number?
- Replies: 46
- Views: 27039
Re: Random number?
If you call math.random too often you better call math.randomseed(os.time()) before of math.random...
- Mon Jun 24, 2013 9:41 am
- Forum: Support and Development
- Topic: distorted text
- Replies: 4
- Views: 2243
Re: distorted text
Yes, already solved that, u posted exactly when i edited the thread...
- Mon Jun 24, 2013 5:27 am
- Forum: Support and Development
- Topic: Getting Networking to work
- Replies: 6
- Views: 2807
Re: Getting Networking to work
I'm not familiar with UDP, but as much as i know, it's not very good to games because there is the risk of data loss, i think you should use TCP instead...
But out of this discussion of tcp vs udp, you only do settimeout(0) after the connection, otherwise it will not connect.
But out of this discussion of tcp vs udp, you only do settimeout(0) after the connection, otherwise it will not connect.
- Mon Jun 24, 2013 5:15 am
- Forum: Support and Development
- Topic: distorted text
- Replies: 4
- Views: 2243
Re: distorted text
Thank you, it's running fine now... I just got another problem, i was playing with the particles system just to see how it works, but i can't see anything, i even did some prints to see how many particles there is running and everything seems ok... I didn't find any example/tutorial about this, so i...