Author Topic: What are you working on? :D  (Read 34604 times)

0 Members and 1 Guest are viewing this topic.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 899
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #570 on: December 22, 2011, 09:17:03 AM »
Code: [Select]
--this loop is obviously not infinite, however it's still in progress
for counter,value in ipairs(arr) do
 ReadTopicCarefully(value) --yep, all of them to the last one
end

You may know this by now, but if you want an infinite loop, use

for i = 0,math.huge do
--blahblahblah
end

However, your method is probably better for what you used it for.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #571 on: December 22, 2011, 09:43:49 AM »
No, infinite you want?

Code: [Select]
v = true
while v do
 -- Derp?

 Coroutine.yield()
end

But you get that loop with the classic "while GameRunning() do - end", and I'm not sure you can nest them and get the effect.

collapsoul

  • No Intel Inside
  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
  • a bot in a human disguise
Re: What are you working on? :D
« Reply #572 on: December 22, 2011, 09:51:32 AM »
for i = 0,math.huge do
--blahblahblah
end

Loop that'll force an entity to live forever:
Code: [Select]
while true do
   Live()
end
Heh, Aino is faster =-)

As for math.huge, the best use of it I can think of so far is to use it to initialize variable used to store min/max values:
Code: [Select]
CompareVar = math.huge -- (or '-math.huge' if used with math.max)

for x = y , z do
   CompareVar = math.min(CompareVar, arr[x])
end

<added>
As I progress with webs, a new idea makes me to scratch my skull fiercely.
What if I make a no-tree asteroid populated by Grays?
What if next I draw a huge seedling body on top of it (huge enough to close that roid completely)?
What if I force this whole construction to follow mouse clicks and, if another asteroid is selected, our Grays go out to attack it?
I think it is even possible to make it destroy smaller asteroids by shooting them (like it is done in RoidForge/RingDesigner)
The hardest part of it all would be not technical but challenge providing and storyline-related.
Of course this will be another map, don't want to do these webz forever.
So... How could this abomination be called then? Seednought? Seedcruiser? Roflcopter? Any ideas? ;)
« Last Edit: December 22, 2011, 10:24:54 AM by collapsoul »
You never get involved in a pig fight. If you do, three things happen: you get dirty, you get tired, and only the pig has fun.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 899
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #573 on: December 22, 2011, 06:05:30 PM »
Ah, but for i=0, math.huge is better for things where you have to keep count of how many times the loop has run.

Avaguard

  • Seedling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 40
  • SO what if im a girl that plays games
Re: What are you working on? :D
« Reply #574 on: December 25, 2011, 10:21:20 PM »
ima leave this map makeing stuff to the geniusses i cant compute any of this oh whats that thing calld peoplke do to test maps .lol :tester thats right Please send me any map i can test or try out  i might not get back to u about it in a lil
People really need more GUARDS

collapsoul

  • No Intel Inside
  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
  • a bot in a human disguise
Re: What are you working on? :D
« Reply #575 on: January 02, 2012, 10:40:50 AM »
ima leave this map makeing stuff to the geniusses i cant compute any of this oh whats that thing calld peoplke do to test maps .lol :tester thats right Please send me any map i can test or try out  i might not get back to u about it in a lil
Beta (or what can be called so) is underway. I absolutely don't see any reason why stuff made for the community (and own amusement of course :) ) should be closed at any stage of its development. So look for a new topic regarding open beta-test in next 24-36 hours if interested.
You never get involved in a pig fight. If you do, three things happen: you get dirty, you get tired, and only the pig has fun.

Lost Seedling

  • Shrub
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 148
Re: What are you working on? :D
« Reply #576 on: January 04, 2012, 07:08:52 AM »
I want to call a function at regular intervals- every 1 second, or every half-second, etc. Ideally, I'd be able to adjust the interval to less than a second if needed. This interval, once set, does not need to be changed during the game. My computer runs much slower than most, so the time should be based on the system clock vs. "Game Time" in Eufloria so that the time interval is not dependent on the speed of the computer. The result must be whole numbers in ascending sequence. In other words, I need to have a count, but possibly slower or faster than second-intervals. I also need to be able to reset the count back to "1" when reaching a certain number, so that, for example, on reaching 100 it will reset to 1 and count up again.

Does anyone know how I can achieve this?
« Last Edit: January 04, 2012, 10:41:28 AM by Lost Seedling »

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #577 on: January 04, 2012, 01:49:48 PM »
I want to call a function at regular intervals- every 1 second, or every half-second, etc. Ideally, I'd be able to adjust the interval to less than a second if needed. This interval, once set, does not need to be changed during the game. My computer runs much slower than most, so the time should be based on the system clock vs. "Game Time" in Eufloria so that the time interval is not dependent on the speed of the computer. The result must be whole numbers in ascending sequence. In other words, I need to have a count, but possibly slower or faster than second-intervals. I also need to be able to reset the count back to "1" when reaching a certain number, so that, for example, on reaching 100 it will reset to 1 and count up again.

Does anyone know how I can achieve this?

A simple code:
Code: [Select]

t = GetGameTime()
myInterval = 1
if GetGameTime() > t+myInterval then
 
 --do stuff
 
 t = GetGameTime()
 
end

Lost Seedling

  • Shrub
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 148
Re: What are you working on? :D
« Reply #578 on: January 05, 2012, 06:44:02 AM »
Thanks, but that's not quite what I was looking for. Never mind, though. I figured it out but ultimately decided to go another route as things were too jerky using clock time.

On another note...

Quote
So look for a new topic regarding open beta-test in next 24-36 hours if interested

I've been holding my breath for 45 hours and am turning purple!

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #579 on: January 05, 2012, 12:23:42 PM »
Hello everyone. :>

Hope you are all well and had a comfortable festive season.

A friend recently expressed an interest in learning to script Eufloria levels, so I showed him all the guides and stuff on here.  Hopefully he will get into it.. :>
What's been happening around here lately?

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #580 on: January 05, 2012, 04:48:59 PM »
There you are! :D

I've been doing java coding, making my own games with LWJGL, the same engine Minecraft uses and I'm currently making an Eufloria inspired game.
And maybe you didn't know(hard do keep track of time) I've made a Leaderboard, Minimap and a new AI(MAI). I don't know if you know about any of them :P

And: Welcome back Annikk! :D

Oh and: http://www.minecraftforum.net/topic/885938-modloader100-volcanoes-10/ is just an example of java knowledge, MC is quite easy to mod though...

collapsoul

  • No Intel Inside
  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
  • a bot in a human disguise
Re: What are you working on? :D
« Reply #581 on: January 05, 2012, 09:22:28 PM »
On another note...

Quote
So look for a new topic regarding open beta-test in next 24-36 hours if interested

I've been holding my breath for 45 hours and am turning purple!
;D Yeah, yeah, should read as '82 hours' actually :P
Quite a cool metabolism you have here BTW ;)


Hello everyone. :>
Hello and I the first thing I wanted to say to you is: thank you. Your creativity is what led me to this forum, your awesome maps made me wanting to create something cool too.

What's been happening around here lately?
Two new modders happened recently. One is fast and creative, another is slow and heavy-minded ;)
You never get involved in a pig fight. If you do, three things happen: you get dirty, you get tired, and only the pig has fun.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 899
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #582 on: January 05, 2012, 10:39:24 PM »
Oh, and I still haven't got OHAI up here yet. I'm not sure where it is, or if I even finished it...

Lost Seedling

  • Shrub
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 148
Re: What are you working on? :D
« Reply #583 on: January 06, 2012, 08:31:26 PM »
Welcome back! I hope you stick around- your knowledge has been sorely missed by all. Aino just hasn't been the same since you disappeared! I assume you've been spending your creative energies elsewhere, like your music, perhaps? Care to share? How is Fluffy?

(I've been corrected- BattleFluffy!)
« Last Edit: January 07, 2012, 12:34:19 AM by Lost Seedling »

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #584 on: January 06, 2012, 08:41:55 PM »
Welcome back! I hope you stick around- your knowledge has been sorely missed by all. Aino just hasn't been the same since you disappeared! I assume you've been spending your creative energies elsewhere, like your music, perhaps? Care to share? How is Fluffy?

I guess I've been more away and more busy after Annikk left :P