Author Topic: What are you working on? :D  (Read 34710 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 #180 on: May 25, 2011, 07:01:23 PM »
Just a thought - how is this going to work with other stuff? Y'know, like IAI, AAI, blackholes, gravity etc.

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 #181 on: May 25, 2011, 07:07:31 PM »
Well, The save works simple, you store all the infor you want to store in a file, so for each attribute or anything, you just add something.

Code: [Select]
io.output(io.open(BasicSaveFolder .. savename .. ".TCS", "w"))
local txt = "truesave\n"
for i = 1,NumDrawings do

txt = txt .. Px[i] .. "\n"
txt = txt .. Py[i] .. "\n"
txt = txt .. Vx[i] .. "\n"
txt = txt .. Vy[i] .. "\n"
txt = txt .. Ax[i] .. "\n"
txt = txt .. Ay[i] .. "\n"
txt = txt .. Mass[i] .. "\n"
if Drawn[i] == true then
txt = txt .. "1" .. "\n"
else
txt = txt .. "0" .. "\n"
end
if IsAlive[i] == true then
txt = txt .. "1" .. "\n"
else
txt = txt .. "0" .. "\n"
end
if i < NumDrawings then
txt = txt .. SpawnP[i] .. "\n"
else
txt = txt .. SpawnP[i]
end

end
io.write(txt)
io.close()

This is a part of the saving system, as you see it stores all the attributes of the dots on each line, you can just add more and more attributes in here. So for gravity, well just add it in and you end up with gravity... So what I mean is that the system is very dynamic :)

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #182 on: May 27, 2011, 01:34:36 PM »
Will be releasing a new map-making tool later today.

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 #183 on: May 27, 2011, 01:49:18 PM »
A map making tool o.O

So thats the new mechanic :D

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #184 on: May 27, 2011, 01:55:06 PM »
Nah, this is seperate to the new mechanic I made.

I decided to make a map-making tool because I can't be bothered figuring out the coordinates asteroids should go at.  So I've made a point-and-click asteroid positioner and sizer.  When you're finished you click a button and it will dump the code to make that configuration of asteroids to a file.

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 #185 on: May 27, 2011, 02:08:50 PM »
And it works properly? :)

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #186 on: May 27, 2011, 02:38:29 PM »
See for yourself.  :>

dragoonreas

  • Seedling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #187 on: May 27, 2011, 04:15:25 PM »
Ok, gonna make an even more feature rich save system, quicksave and quickload/loadlast :D

I was looking over the functions in the Eufloria Lua scripting reference post here and was wondering what stats the following two functions saved and loaded, and whether or not there is any overlap between what stats you're trying to save manually.
Code: [Select]
SaveStats(string filename) e.g. SaveStats("myfile.bin") - saves out the current game stats to the given file
LoadStats(string filename) e.g. LoadStats("myfile.bin") - loads myfile.bin into the current stats register

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #188 on: May 27, 2011, 04:25:25 PM »
I think they save things like how many levels you've completed, which achievements you've completed, etc.  The stuff we're saving for this is the position and size of asteroids.

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 #189 on: May 27, 2011, 04:37:13 PM »
And the files you get are completely useless for my purpose :)

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #190 on: May 30, 2011, 07:53:48 AM »
Spent some time working on the new level last night.  Going well so far.  :>

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 #191 on: May 30, 2011, 09:13:27 AM »
Aww, I wanna see what it is D:

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #192 on: May 30, 2011, 09:28:16 AM »
Well, the thing I was working on most recently was figuring out a way that Mines can be grown from trees.. and how to plant a tree using 10 mines.  That part is working good.  :>  I also did some testing on ordering the mines to move around... that part doesn't work quite how I'd like it, but I might be able to figure out a solution there..

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 #193 on: May 30, 2011, 09:35:58 AM »
That might be hard... I got no real idea without getting into not working or crash... Moving mines with triggering doesn't seem to work so good, but I dunno...

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #194 on: May 30, 2011, 11:44:01 AM »
Well, if I tell a bunch of mines to go to an asteroid, they do it.

The problem is that they ignore the send distance of the asteroid they are travelling from, and just go straight towards the destination asteroid without having to cross the intervening asteroids first like seedlings would.

This behaviour is a bug with the mine:SendTo() command unfortunately.