Editing 102 - Events

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

User avatar
Jeffrey H.
Posts: 3154
Joined: Fri Apr 13, 2007 6:39 pm
Location: San Diego, Ca.

RE: Editing 102 - Events

Post 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.

History began July 4th, 1776. Anything before that was a mistake.

Ron Swanson
lancer
Posts: 2963
Joined: Tue Oct 18, 2005 8:56 am

RE: Editing 102 - Events

Post 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
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: Editing 102 - Events

Post by bwheatley »

what was the problem lancer?
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
lancer
Posts: 2963
Joined: Tue Oct 18, 2005 8:56 am

RE: Editing 102 - Events

Post 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
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: Editing 102 - Events

Post 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 :)
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
lancer
Posts: 2963
Joined: Tue Oct 18, 2005 8:56 am

RE: Editing 102 - Events

Post 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
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: Editing 102 - Events

Post 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
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: Editing 102 - Events

Post 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 :'(
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: Editing 102 - Events

Post by bwheatley »

Looks like there is a limit that is not documented on creating a string.

Image
Attachments
gamecrash.jpg
gamecrash.jpg (338.54 KiB) Viewed 125 times
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: Editing 102 - Events

Post by bwheatley »

Also i noticed if you click on the last column of a stringlist it does that error too.
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
Post Reply

Return to “Mods and Scenarios”