Page 2 of 2

RE: Editing 102 - Events

Posted: Wed May 04, 2011 5:03 pm
by Jeffrey H.
ORIGINAL: lancer

Something strange happening with the round processing when the human player isn't the default '0' regime. Haven't changed any of the ATG random game rulevars or done anything else that may effect it to the best of my (limited) knowledge.

The first random game I started in ATG, I moved the human regime from it's default position to the last regime in sequence and some very strange things happened. The game really didn't "go". I had shroud on and a few other items selected.

Something's fishy, IMO, and it's not related to your event directly.


RE: Editing 102 - Events

Posted: Fri May 06, 2011 7:57 am
by lancer
G'day,

For anyone reading this thread I should state for the record that the problem turned out to be operator error and that there is no particular game bug with what I've highlighted above.

Cheers,
Lancer

RE: Editing 102 - Events

Posted: Sat Oct 01, 2011 11:56 am
by bwheatley
what was the problem lancer?

RE: Editing 102 - Events

Posted: Sun Oct 02, 2011 8:02 pm
by lancer
G'day,

From memory the problem wasn't with the code but was with me getting all tangled up over how to handle random game masterfiles.

I was using previously saved games for testing when I thought I was using newly generated ones.

Once I was sorted on that it all fell into place.

Cheers,
Lancer

RE: Editing 102 - Events

Posted: Sun Oct 02, 2011 9:59 pm
by bwheatley
Cool thanks. I'm back into editing again so any tips and tricks i can remember will help me. I really like the new stringlist stuff. It cut down one of my functions from 100 lines to 11 and a stringlist :)

RE: Editing 102 - Events

Posted: Mon Oct 03, 2011 9:14 pm
by lancer
G'day,

Yep, stringlists are your friend.

Don't forget that the first record in a stringlist is record '0', not record '1'.

Also if you start dynamically adding or subtracting records from a stringlist you need to make sure you are accessing the right record.

Something like this... (stringlist ID89)

Exec: ExecAddStringListCells(89,1,0)
SetVar: TempVar5 = CheckStringListRows(89)

then use TempVar5 as your row index, eg.

Exec: ExecSetStringList(89,TempVar5,...,...)

Cheers,
Lancer

RE: Editing 102 - Events

Posted: Mon Oct 03, 2011 10:43 pm
by bwheatley
Yea used to 0 being the primary id from programming shiz.
Thought i had just run into a loop issue but it was because i had a loop in a loop and goofed up the logic lol. Oops

RE: Editing 102 - Events

Posted: Mon Oct 03, 2011 11:15 pm
by bwheatley
Wonder if there is a size limit for the strings i was trying to make a string 241 by 85 and it crashes out on me :'(

RE: Editing 102 - Events

Posted: Mon Oct 03, 2011 11:25 pm
by bwheatley
Looks like there is a limit that is not documented on creating a string.

Image

RE: Editing 102 - Events

Posted: Tue Oct 04, 2011 2:30 am
by bwheatley
Also i noticed if you click on the last column of a stringlist it does that error too.