Amalgumated Coding Questions

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

Moderator: Vic

Post Reply
ghoward
Posts: 150
Joined: Fri Nov 09, 2007 8:32 pm

Amalgumated Coding Questions

Post by ghoward »

Does anybody know how to set the NewDawn masterfile (or any of the others, for that matter) to allow engineers to repair cities? I remember Bombur did it in his global domination series, but I can't figure out how. I am using the AT Gold engine (v2.15e) and maybe it is hard wired in there. I think I managed to make cities buildable by messing around with the statistics on the item types page, but what I want is to make them repairable, not buildable. Any ideas?
User avatar
Twotribes
Posts: 6466
Joined: Fri Feb 15, 2002 10:00 am
Location: Jacksonville NC
Contact:

RE: Amalgumated Coding Questions

Post by Twotribes »

Use the editor and on the LT screen change your cities towns ect to allow building. Do not allow the smallest to be built. That should do it.

Opps forgot if you don't want your engineers to make new cities set the required build to something they can not build like a village or town type not in your game.
Favoritism is alive and well here.
ghoward
Posts: 150
Joined: Fri Nov 09, 2007 8:32 pm

RE: Amalgumated Coding Questions

Post by ghoward »

Thanks, Twotribes I gave this a try. With a random game I have saved as a scenario I set cities to "buildable" and EP cost to 40, leaving supply cost and pp cost at 0 and I still cannot repair a city. The build/repair button is darkened, and a hover gets a "location cannot be repaired" message. There has to be some switch or rulevar somewhere that controls weather or not repairing is allowed or what may and may not be repaired. I don't think anything in these random scenarios are repairable with the default masterfiles. Spin one up and give it a try. Thanks for your response.
User avatar
ernieschwitz
Posts: 4554
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Amalgumated Coding Questions

Post by ernieschwitz »

It´s somewhere in the RuleVars if i don´t recall wrongly.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4554
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Amalgumated Coding Questions

Post by ernieschwitz »

It seems to be rulevar 504

(Enable/Disable features)
504) Disable Build/Repair Location (0=no, 1=yes).

Change this to 0, and you should be able to repair cities and such as normal
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
ghoward
Posts: 150
Joined: Fri Nov 09, 2007 8:32 pm

RE: Amalgumated Coding Questions

Post by ghoward »

Thank you for taking the time to look. I found that switch last week and it's already set to 0. I even tried setting it to 1, but, as advertised, that makes the build/repair button disappear completely.
User avatar
ernieschwitz
Posts: 4554
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Amalgumated Coding Questions

Post by ernieschwitz »

Hmmm that must be rather frustrating. I wonder how Vic accomplished the no-repair feature then...
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4554
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Amalgumated Coding Questions

Post by ernieschwitz »

I don´t like not understanding stuff, so i went into the editor with a few ideas.

1). It could be a rulevar

I checked those, and found to my surprise that repairing had been allowed.

2). It could be that the rulevar was changed in the code.

Well, no dice. I couldn´t find an event doing that.

3). I checked the LTs, SFTs and even Items, to see if it was something there... and still no dice.

I have an idea i might check up on later, but, so far I am stumped!
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4554
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Amalgumated Coding Questions

Post by ernieschwitz »

FOUND IT! (I think)

Under Rulevars -> ZOC, Recon & Autoconquer -> Rulevar 902 Disable that engineers can repair locations. Set this to 0. Instead of 1 as is.

It should fix it.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
ghoward
Posts: 150
Joined: Fri Nov 09, 2007 8:32 pm

RE: Amalgumated Coding Questions

Post by ghoward »

You are my hero! Now why didn't I see that. I read rulevars until my eyeballs fell out. I guess I wasn't paying attention when I got to the bottom of ZOC, Recon & Autoconquer Thank you.
Post Reply

Return to “Mods and Scenarios”