Thread Tools
Old August 17, 2003, 05:31   #1
Mischl07
Settler
 
Local Time: 07:30
Local Date: November 2, 2010
Join Date: Dec 2000
Location: Freising, Germany
Posts: 4
Ctp2 crashes after save game
Hi !

After not playing for quite a while, I wanted to play Ctp2 again. I intalled it on my new PC (Athlon 2600, Windows 2000).

Unfortunately it does not work.

After saving a game the game continues. But when I move a unit I get the error message:

"Slic Error

In object CheckForUnit, function _GetUnitFromArmy: Value out of bounds"


Can anyone halp me with that?

Thanks
Michael
Mischl07 is offline  
Old August 17, 2003, 05:55   #2
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 07:30
Local Date: November 2, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
Are you playing the Call to Conquest mod?

edit: And what difficulty level are you playing on?

Last edited by Peter Triggs; August 17, 2003 at 06:06.
Peter Triggs is offline  
Old August 17, 2003, 06:06   #3
Mischl07
Settler
 
Local Time: 07:30
Local Date: November 2, 2010
Join Date: Dec 2000
Location: Freising, Germany
Posts: 4
No, I installed only Call to Power II and the patch to version 1.1 (ctp2patch1_11.EXE)

Last edited by Mischl07; August 17, 2003 at 06:11.
Mischl07 is offline  
Old August 17, 2003, 06:18   #4
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 07:30
Local Date: November 2, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
That function is used in the tutorial and this shouldn't be happening. If you play on a higher difficulty level you won't get the tutorial and so shouldn't have this problem. But I think that the easiest thing to do is to go to your userprofile.txt in Call To Power 2\ctp2_program\ctp and set "DebugSlic=No". I also think there's a better way of doing this but I can't remember what it is (IW, Martin, Locutus, anybody ?)
Peter Triggs is offline  
Old August 17, 2003, 08:45   #5
Mischl07
Settler
 
Local Time: 07:30
Local Date: November 2, 2010
Join Date: Dec 2000
Location: Freising, Germany
Posts: 4
That helped. Everything is fine now!

Thanks a lot
Michael
Mischl07 is offline  
Old August 17, 2003, 12:36   #6
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 09:30
Local Date: November 2, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Quote:
Originally posted by Peter Triggs
I also think there's a better way of doing this but I can't remember what it is (IW, Martin, Locutus, anybody ?)
If the army array is used, an army valid check could solve the problem. But I have rather the feeling that with the variable copying process went something wrong. And indeed the function CheckForUnit may not work as expected:

Quote:
Important note! As this documenation is being prepared, the first patch for CTP2 is about to be released. Unfortunately a bug with functions was discovered too late to fix. Specifically, in some cases, using members of unit, army, city, and location variables that are function parameters may not always work as expected. There is, however, a workaround. Copy the function parameter to a local variable and use that variable instead.
Yes the function parameters in the function aren't copied to local variables. Another bug we should add to the list.

So parameter copying and army valid check should fix the problem.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:30.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team