Jump to content
Sign In to follow this  
Hutts

Help with airport mod idea.

2 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Have an idea for an airport mod.  Basically was looking at creating an ATC for the Modular Airport packs, that would function like an airport (seeing the modular airport is not actually an airport), the thing would be, however, to use lot tracking (like the BRT) of the airport gates, and assign a value to the type of gate for capacity, and then create a custom query that would calculate the airport 'capacity' (which would not be the real capacity of the airport per the game thinks, but a given value for the mayor).  This way you could size your airport based on real data.

Any thoughts?

ADDED:

In doing a little digging (never done any modding yet) here's what i got so far: to do this, creating a custom query you'd have to track each gates instance id (if that's the right term)

#sc4game.automata.get_source_building_count(hex2dec("XXXXXXXX"))#
where XXXXXXXX would be the value of the gate lot

And in the query LTEXT entry for the 'capacity' would look something like
#(sc4game.automata.get_source_bulding_count(hex2dec("XXXXXXXX)) * 5000) + (sc4game.automata.get_source_bulding_count(hex2dec("YYYYYYY)) * 10000)#

Noticeing that like BSC and SimGoober have their own instance id's to track their lots, how would you add a properties to track gates by size like GateSM, GateMD, GateLG, to individual gate lots so your final LTEXT entry in the ATC custom query would end up something like this:

#(sc4game.automata.get_source_bulding_count(hex2dec("GATESM")) * 5000) + (sc4game.automata.get_source_bulding_count(hex2dec("GATEMD)) * 10000) + (sc4game.automata.get_source_bulding_count(hex2dec("GATELG)) * 15000)#

Going in the right direction here?

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hello Hutts, your idea would work!

However, you would need to get someone to bat the modular airport buildings (gates) first and then establish a cooperation with BSC for two reasons:

1. Any added functional airports need to be added to the Airports Developer exemplar, which is maintained by Swamper77 in his Airport Support file. I really don't see why the airport gates couldn't be functional.

2. In order to being able to count the number of buildings, it has to be assigned an Occupant Group (not Instance ID) that needs to be within the range tracked by the BTE script made by Daeley and included in the BSC Essentials.

I would suggest asking this same question at www.sc4devotion.com where you are more likely to get a reply both from Swamper77 and Daeley.

Share this post


Link to post
Share on other sites

Sign In or register to comment...

To comment in reply, you must be a community member

Sign In  

Already have an account? Sign in here.

Sign In Now

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

Sign In to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Exchange.
Make a Donation and get one or all three discs today!

STEX Collections

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections