Thread Tools
Old September 18, 2002, 08:47   #31
stankarp
staff
Age of Nations Team
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Feb 2002
Location: australia
Posts: 733
Thnx))))))))
stankarp is offline  
Old September 20, 2002, 07:44   #32
stankarp
staff
Age of Nations Team
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Feb 2002
Location: australia
Posts: 733
Hi Pedrunn,

Copied the CRA_CityAdvance.slc file as downloaded and Inserted the code lines as described above but now I cant launch the game. Went to Modswapper then it starts to load and then reverts to desktop.

Changed everything back and same thing happened. Reloaded Cradle 1.33 and same thing. Dont know what happened.
stankarp is offline  
Old September 20, 2002, 08:44   #33
stankarp
staff
Age of Nations Team
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Feb 2002
Location: australia
Posts: 733
Further update.

I had to go back and reinstall CTP2, the patch and all the Cradle zip files in approximately the order I downloaded them to get it to run again.

When I removed the #include "CRA_CityAdvance.slc" lines from the four files I wonder if I didnt do it exactly, ie, left a space accidentally.

I hope that this feature can be incorporated into Cradle 1.33.
stankarp is offline  
Old September 20, 2002, 13:23   #34
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 04:34
Local Date: November 1, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Thats not a slic error . Spaces, enter and tabs wont give problems. Although letters and numbers would give you slic error messages at the very end of the loading. The very end loading of CTP2 is when slics are being checked. So if the crash happenned before it wasnt the slic. Still I really dont believe my code was the problem. I suggest you reinstall the craddle (no need to re install the CTP2) and launch the game if ti worked include the CRA_CityAdvance.slc in the scripts files and launch it again. It should work for new version of Craddle since doesnt seemed to have any change in advances in the mod. That is really odd :confuse:
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old September 20, 2002, 13:52   #35
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:34
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Quote:
Originally posted by stankarp
Hi Pedrunn,

Copied the CRA_CityAdvance.slc file as downloaded and Inserted the code lines as described above but now I cant launch the game. Went to Modswapper then it starts to load and then reverts to desktop.

Changed everything back and same thing happened. Reloaded Cradle 1.33 and same thing. Dont know what happened.
How often you tried to load Cradle, from time to time if I start a new game the game crashes so I reloaded and no problem.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old September 20, 2002, 19:31   #36
stankarp
staff
Age of Nations Team
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Feb 2002
Location: australia
Posts: 733
I am now running the game again OK.

I will save a copy of the Gamedata folder and try again later.

One Question. I have never been able to run Med Mod by Wes. I downloaded it twice and it crashes everytime I try to load. Are Cradle and Med Mod incompatible?

Thanks for everyones help. I like the looting feature in Cradle where you get a PW and sometimes gold bonus. Its a nice "balancer" against the Ai who obviously gets a lot of bonuses and freebies at impossible difficulty level.
stankarp is offline  
Old September 21, 2002, 04:09   #37
stankarp
staff
Age of Nations Team
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Feb 2002
Location: australia
Posts: 733
I found the problem

The CRA_CityAdvance.slc file as downloaded actually had a slightly different name to the one above. I renamed it and the game now works. I started playing and used editor to cheat to hurry up the process.)))

When I captured the first enemy city, I received an advance entitled "Rational Thought" which is not in the great library When I clicked on rational thought in the science window it locked the game and I use cntrl/alt/del to stop CTP2.

Then I captured three more cities and nothing happened. When I captured the next one, that was the end ot that AI, I suddenly received about 8 or 9 techs. I had actually given the etrurians a few more techs than me so they had something to cough up but it appears when that AI player was eliminated I may have been given techs from all the AI. Could that be possible? Then again, that AI may have just been given a big bonus of other AI players techs. But I certainly got at least 8 or 9 techs.

I will play some more tonight.

Thanks for the help
stankarp is offline  
Old September 21, 2002, 07:37   #38
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 04:34
Local Date: November 1, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
I made some small changes including the disable of the code if the conquered player is loosing its last city.

Rational though I cant even find it in the tech tree. I made some really small changes but i hope it works now.

But be aware that this wasnt even tested. I will test today.
Attached Files:
File Type: slc cra_cityadvance.slc (22.8 KB, 8 views)
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old September 21, 2002, 18:15   #39
stankarp
staff
Age of Nations Team
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Feb 2002
Location: australia
Posts: 733
Game running now OK except about turn 35-40 it crashed a couple of times when i ended turn. Rekoade autosave, went to editor and reloaded slic and it worked fine.

I am up to turn 100 about and it appears to be working. The Rational Thought advance just seems to come from nowhere. I have got one advance from capturing cities which is a nice touch.

Thanks for your help)
stankarp is offline  
Old September 21, 2002, 20:48   #40
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 04:34
Local Date: November 1, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
This Rational Thought will be out with the code i attached in the craddle game .
Just download it and overwites the one with same name in the \ctp2_data\default\gamedata.
When loading your saved game during your play press ' wich will open the chat box and write in it
Code:
/reloadslic
and press enter.
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old September 26, 2002, 11:08   #41
SMIFFGIG
Call to Power II Democracy GameCall to Power II MultiplayerCTP2 Source Code Project
Prince
 
SMIFFGIG's Avatar
 
Local Time: 08:34
Local Date: November 1, 2010
Join Date: Jul 2002
Location: Great Britain
Posts: 684
Pedrunn this is an important file youve created here. Especially for some ctp1 players who may miss this feature in ctp2

I think maybe you should create a small little tut on how to get it working for both original and cradle mod and release it as a little mod of its own right for the files directory. Of course its primary function is for future and current mods eg MM2 current and HotW for definite future

deserves a little news item which i would write if u want?
__________________
Oxygen should be considered a drug
Tiberian Sun Retro
My Mod for Tiberian Sun Webmaster of
http://www.tiberiumsun.com
SMIFFGIG is offline  
Old October 1, 2002, 20:26   #42
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 07:34
Local Date: November 1, 2010
Join Date: Nov 2001
Posts: 437
Quote:
Originally posted by Martin Gühmann


Actual this is the original indented chance I found in my GM1_Const.txt.

-Martin
Wow! A lot of work by Pedrunn has been made on the .slc code. Unless I have misunderstood what everyone is trying to do here, in the Const.txt file there is a line:

CAPTURE_CITY_ADVANCE_CHANCE 0.5 # chance of gaining an advance when capturing a city (assuming they have advances you don't)

If you change the variable to a higher #, even 1.0 if you want, I think you will get the advances you want.

I think this is what Martin was saying earlier.
ahenobarb is offline  
Old October 1, 2002, 23:09   #43
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 04:34
Local Date: November 1, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Quote:
Wow! A lot of work by Pedrunn has been made on the .slc code. Unless I have misunderstood what everyone is trying to do here, in the Const.txt file there is a line:
Dont tell anyone but the cityadvance.slc is basicly made of repetitive lines written by the J ByTheWay application. The only thing really done by me was the idea of how to make it work and the 26 lines code at the end .

Quote:
If you change the variable to a higher #, even 1.0 if you want, I think you will get the advances you want.

I think this is what Martin was saying earlier.
The chance of getting the advance is in the code. In the line
Code:
Random(4)
wich means 1 out if 4 (therefore 25%). You can change the numer if you want.
The string in the const.txt is obsolete and useless.
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old October 2, 2002, 04:03   #44
Devil of Truth
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Prince
 
Devil of Truth's Avatar
 
Local Time: 09:34
Local Date: November 1, 2010
Join Date: Sep 2002
Location: Keep honking... I'm reloading.
Posts: 351
Quote:
Originally posted by Pedrunn
The chance of getting the advance is in the code. In the line
Code:
Random(4)
wich means 1 out if 4 (therefore 25%). You can change the numer if you want.
Pedrunn, you just don’t disappoint - great code – again!

I don’t consider myself a SLICer, but if I remember correctly (please correct me if I’m wrong), the random function starts counting at 0 (like Locutus et al ). Which means random(4) would actually give you a 1-in-5 change (20%) of gaining an advance. Right?
Devil of Truth is offline  
Old October 2, 2002, 05:26   #45
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 08:34
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
It does start at 0, but it stops counting before 4. ie, at 3. Giving you an outcome of 0,1,2, or 3. 1-in-4
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old October 2, 2002, 05:30   #46
Devil of Truth
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Prince
 
Devil of Truth's Avatar
 
Local Time: 09:34
Local Date: November 1, 2010
Join Date: Sep 2002
Location: Keep honking... I'm reloading.
Posts: 351
My bad! Should've known better than to question the masters.
Devil of Truth is offline  
Old October 2, 2002, 05:39   #47
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 08:34
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
We had a loooong debate about it a few days ago...
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old October 2, 2002, 06:25   #48
Dale
Emperor
 
Dale's Avatar
 
Local Time: 17:34
Local Date: November 1, 2010
Join Date: Dec 2000
Posts: 3,944
Yeah, and so I found out I was wrong too!

ME!

The creator of SAP2 and WAW!

I decree that everyone else is wrong and I'm right.
Dale is offline  
Old October 2, 2002, 09:05   #49
mapfi
Call to Power II Democracy GameCall to Power II Multiplayer
Prince
 
Local Time: 08:34
Local Date: November 1, 2010
Join Date: Jul 2002
Location: San Francisco, CA
Posts: 848
You know I couldn't believe it either until I saw it with my own eyes, but honestly SLIC can't surprise me anymore, after Pedrunn discovered that
a * 10 / b is calculated a/b * 10
if you don't put it in brackets - something rather important if you're dealing with a language that allows only integers.
mapfi 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:34.


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