Page 1 of 3
Need Help with RPG engine

Posted:
Fri Mar 11, 2011 9:33 pm
by Hblade
I'll be willing to share the dropbox folder with anyone who wants to help, and MAN i need help on it >.> I can do most of it but when it comes to saving and loading tile positions, I can't do it. So if anybody knows about this, (DST, Skydereign, Game A Gogo, Etc), please let me know and help out thanks

Re: Need Help with RPG engine

Posted:
Fri Mar 11, 2011 10:54 pm
by lcl
I could help you.

What's the thing with tile positions saving and loading?
Re: Need Help with RPG engine

Posted:
Fri Mar 11, 2011 11:04 pm
by Hblade
The tiles, are cloned actors and I've always had problems using arrays for they're locations because its based on Cloneindex and what happens if you delete one? And what happens if you have a bunch on there but want to load another file without having to reset the EXE? The variables dont get reset the tiles get distored and sometimes crashes the EXE O-o
Basiclaly there are 3 array variables
TX (Tile X), an array of 20000 for 20000 tiles
TX (Tile Y), an array of 20000 for 20000 tiles
TANIM (Tile Animation), an array of 20000 for 20000 tiles
However, loading they're positions and animation frames, (animpos, since its all in 1 animation), is complicated.
Re: Need Help with RPG engine

Posted:
Sat Mar 12, 2011 12:41 am
by lcl
ahh.. those cloneindex problems..
it's way hard to help without the files.. xD
Re: Need Help with RPG engine

Posted:
Sat Mar 12, 2011 1:05 am
by Hblade
hehe, yeah.
Re: Need Help with RPG engine

Posted:
Sat Mar 12, 2011 1:19 am
by Game A Gogo
The best way to handle cloned actors for a tile editor is having an actor creating the clones, that way you are sure about the cloneindexes being alright and that you won't mess with your clones!
Re: Need Help with RPG engine

Posted:
Sat Mar 12, 2011 1:53 am
by Hblade
Gag, would you mind taking the ged file and finishing up the Level editor? and explain to me how to load the level in an actual game too.
Re: Need Help with RPG engine

Posted:
Sat Mar 12, 2011 2:49 am
by Game A Gogo
I might, I've been busy lately, not with Space Traveler either
Re: Need Help with RPG engine

Posted:
Sat Mar 12, 2011 3:06 am
by Hblade
Oh, alrighty.
Re: Need Help with RPG engine

Posted:
Tue Apr 05, 2011 9:47 pm
by lcl
Hey Hblade, if you still need help with this, I would like to help.

Re: Need Help with RPG engine

Posted:
Thu Apr 07, 2011 2:42 am
by Hblade
kk

Re: Need Help with RPG engine

Posted:
Fri Apr 08, 2011 5:22 am
by lcl
Hblade wrote:The tiles, are cloned actors and I've always had problems using arrays for they're locations because its based on Cloneindex and what happens if you delete one? And what happens if you have a bunch on there but want to load another file without having to reset the EXE? The variables dont get reset the tiles get distored and sometimes crashes the EXE O-o
You don't have to reset the exe, just do this:
- Code: Select all
void reset()
{
int i;
DestroyActor("tiles"); //That destroys all the tiles.
for(i = 0; i < 20000; i ++) //That resets all the variables.
{
TX[i] = NULL;
TY[i] = NULL;
TANIM[i] = NULL;
}
}
And then, call the function somewhere:
- Code: Select all
reset();

Re: Need Help with RPG engine

Posted:
Sat Apr 09, 2011 4:06 pm
by Hblade
ty
Re: Need Help with RPG engine

Posted:
Sat Apr 09, 2011 6:45 pm
by lcl
Did it help you?
Re: Need Help with RPG engine

Posted:
Sun Apr 10, 2011 4:36 pm
by Hblade
Actually yes it did

though I havent been working on this specific engine in a while, besides the people programming it are MUCH smarter than me at this

GAG and A.. Uh.. I forget his username xD