Jump to content

22 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Hello, is there an ordinance who can raise the cost by the number of sims, commercial job and industrial job together ? Normaly it's only by the number of sims.

Thank in advance for the answer.

Share this post


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

By cost do you mean the ordinance expense? I am not aware of any existing ordinances that do that, but it is something that could be implemented by a DLL ordinance.

Out of curiosity, what type of ordinance are you thinking of? I can't think of any reason for one to need the cost derived from the RCI group totals.

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Hello Null 45, you have create an ordinance "human society", In fact I want to make an ordinance who regrouping almost all of the benefit for a cost of a factor of R C and I.

    Normaly "Montly income factor" is for all residential and for modify that a dll must be made.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    For exemple all of that set initialy to 0 in a INI file

    Capture.5PNG.PNG

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    For all the effect the default is 1.0, for the bonus it must be 0.0.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    Another problem is that I can't get the "Human Society" ordinance to live in the game, here's what the log file gives me:
     
    SC4HumaneSocietyOrdinance v1.0.0
    [15:7:48.217] bad locale name

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    16 hours ago, Null 45 said:

    Out of curiosity, what type of ordinance are you thinking of? I can't think of any reason for one to need the cost derived from the RCI group totals.

    Oh, trust me that I would see a lot of possibilities for numerous ordinances calculated from the most exotic sets of numbers if only there was no limit as to how many are available. This is something that SC3000 excelled in and SC4 largely ignored.

    • Like 1

    The "SimCity 4" vanilla Opera House is the most evil thing in existence. Avoid.

     

    My city journals! *:read:
    - SimCity: Tribalism - seven urbanization concepts clashed together
    Saving Magnasanti... - the most depressing city in history being revitalized

    Also worth checking...
    - "TMC's Drawing Board" - my city designs and plans.
     

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    26 minutes ago, TheMurderousCricket said:

    Oh, trust me that I would see a lot of possibilities for numerous ordinances calculated from the most exotic sets of numbers if only there was no limit as to how many are available.

    DLLs can add new ordinances with whatever custom algorithms they want to use, the challenge is that I have never found an easy way to make that accessible to people who don't know C++.

    26 minutes ago, TheMurderousCricket said:

    This is something that SC3000 excelled in and SC4 largely ignored.

    I would not be surprised if additional ordinances were one of the features that Maxis had to cut to make EA's target release date.

    16 hours ago, PIPICécé said:

    SC4HumaneSocietyOrdinance v1.0.0
    [15:7:48.217] bad locale name

    Fixed in version 1.1.

    • Like 2

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    " DLLs can add new ordinances with whatever custom algorithms they want to use, the challenge is that I have never found an easy way to make that accessible to people who don't know C++. "

    I'am a real nulity with C++ at this time, It where good if I know more how to do with the SC4's Dlls at least.

    Well nulity only on C++, otherwise I perfectly understand the variables and the triggers, I play sometime to Warcraft 3 in the world editor so I have a minimum, but for C++...

     

    " Fixed in version 1.1. "

    Ah the 1.1 version, thanks.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Otherwise, can we do triggers on ini files ?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    For exemple those triggers:

        if (monthlyIncome < std::numeric_limits<int64_t>::min())
        {
            monthlyIncomeInteger = std::numeric_limits<int64_t>::min();
        }
        else if (monthlyIncome > std::numeric_limits<int64_t>::max())
        {
            monthlyIncomeInteger = std::numeric_limits<int64_t>::max();
        }
        else
        {
            monthlyIncomeInteger = static_cast<int64_t>(monthlyIncome);
        }

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    43 minutes ago, PIPICécé said:

    Otherwise, can we do triggers on ini files ?

    No.

    43 minutes ago, PIPICécé said:

    For exemple those triggers:

    Those are not triggers, they are simply checks to ensure the monthly income is within the range of a signed 64-bit integer.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Your Humane Society is not based on an ordinance file, apparently it can be done by doing this on HumaneSocietyOrdinance.cpp  file:

    BuiltInOrdinanaceExemplarInfo(0xXXXXXXXX, 0xXXXXXXXX)

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    low wealth population is:

    GetCityPopulation(0x1011)

    mediumwealthpopulation is:

    GetCityPopulation(0x1021)

    Highwealtpopulation is:

    GetCityPopulation(0x1031)

    But for industrial and commercial job it must be something like GetCityPopulation(0xXXXX)

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    23 files was nececary to creat the gambling upgrad dll file in c++, it is the trick that a begin to understand.

     

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    39 minutes ago, PIPICécé said:

    Your Humane Society is not based on an ordinance file, apparently it can be done by doing this on HumaneSocietyOrdinance.cpp  file:

    No, it is more complex than that.

    BuiltInOrdinanaceExemplarInfo is only used in the Legalize Gambling upgrade plugin because Maxis stored the TGI in the save game data, and that plugin needs to use the same save game format as the Maxis plugin it replaces. I am not actually reading any of the exemplar data.
    The legalized gambling ordinance upgrade plugin is more complex than the humane society ordinance because it is replacing the code for a built-in ordinance in order to change its behavior. The humane society and city lottery ordinances just add new ordinances into the game using the relevant API.

    There is no built-in way to get the total commercial or industrial populations, you have to query the individual sub group populations and add up the total.

    10 minutes ago, PIPICécé said:

    23 files was nececary to creat the gambling upgrad dll file in c++, it is the trick that a begin to understand.

    It is far more than that when GZCOM code in included.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    "There is no built-in way to get the total commercial or industrial populations, you have to query the individual sub group populations and add up the total. "

    Is the "game.g_city_rci_population" of the LUA file work ?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I can't see "GetCityPopulation()" in all the files of GZCOM, maybe because I have not enough search.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    " I can't see "GetCityPopulation()" in all the files of GZCOM, maybe because I have not enough search. "

    Ah, I understand, I can't see this variable because it is not intrinsic to GZCOM file.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    " There is no built-in way to get the total commercial or industrial populations, you have to query the individual sub group populations and add up the total. "

    So, "GetCityPopulation(3111)" will be not Commercial Service$ number of job ?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I have just a request, can you creat a virgin ordinance with praticaly all the "ordinance property" set to theire original number who can modified on ini file ?

    With a negative income factor with all type of RCI set to 0 that we can change one by one on ini file too ?

    For exemple:

    R$=0.0

    R$$=0.0

    R$$$=0.0

    CS$=0.0

    CS$$=0.0

    CS$$$=0.0

    CO$$=0.0

    CO$$=0.0

    IR=0.0

    ID=0.0

    IM=0.0

    IHT=0.0

    Take all your time if you want, I'm not in too much of a hurry either


      Edited by nos.17  

    Staff edit: moved post to this thread

    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


    ×

    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