problem with static vs dynamic arrays

34 views
Skip to first unread message

Chiel ten Brinke

unread,
Dec 28, 2010, 4:34:39 AM12/28/10
to TurboRisk
Hello,

I've got a problem concerning arrays. It says in the help of turboRisk
that I should use dynamic arrays, instead of static ones. But having a
look at vexer's code, I see a lot of static arrays. Can anyone
explain?

Moreover, I had used static arrays in some other AI before, without
having troubles anyway. But yet it seems that whenever I use static
arrays, the interpreter exits the routine immediately, giving an error
for invalid ToTerritory '0' (of course, since it wasn't set yet).

Does anyone know what could be the problem?

Thanks,

Chiel

Nathan Scarbrough

unread,
Dec 29, 2010, 12:41:04 AM12/29/10
to TurboRisk
It would help if I could take a look at the code. Could you email me
the TRP you're working on?

Chiel ten Brinke

unread,
Dec 29, 2010, 4:23:12 AM12/29/10
to turb...@googlegroups.com
The problem is in the routine ConquerArea, which is called in the attack procedure. I try to pass arrays as arguments, but it fails to work.

Thanks in advance,

Chiel

PS: I see a few variable declarations at the top of vexer's code... What does that mean? Are that global variables?
brainless V.trp

Brian Andrews

unread,
Dec 13, 2014, 4:09:35 PM12/13/14
to turb...@googlegroups.com
Hi Chiel,

Were you succesful in getting this working?

Chiel ten Brinke

unread,
Dec 13, 2014, 5:11:35 PM12/13/14
to turb...@googlegroups.com
No, as far as I remember I didn't work on it any further.

--
Hai ricevuto questo messaggio perché sei iscritto al gruppo "TurboRisk" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più le sue email, invia un'email a turborisk+...@googlegroups.com.
Per altre opzioni visita https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages