Jump to content
Sign In to follow this  
TinySim

The green stuff will return!

38 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online: A long, long time ago... 
 
I am currently making a mod, wich will re-introduce the news ticker messages that we all remember from SC3K.

I have cracked the code of how to do it, now it's just the manual input of everything, and the beta testing left.

Comments, ideas, requests? Post here.


Finally! The broccoli is back!

Share this post


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

it's a good idea, but i think it would make the news ticker even more cluttered (and it already is cluttered).... i guess some people could like this.... but it's not for me... nice idea though

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    I have successfully coded the whole lua script (well, I made a PHP script that did it for me - http://tinyguy.no-ip.org/require/info.php ).

    I also added a debug entry at the top, wich is exactly like the other ones, except the trigger is set to 1.

    However, it does not work. When I start the game, and enter a city, the debug message does not appear. Is my code wrong or does it have something to do with the instance ID?

    Here's some info on the file ID's:
    Type: 0xCA63E2A3
    Group: 0x4A5E8EF6
    Instance: 0xFF34444B

    The .dat is attached so you can take a look at it if you can help.

    Share this post


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

    now that is an idea! will it have petioners? and do i just drop the DAT file into the plugins folder?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Petitioners? No. (They're the old advisors, or am I totally wrong?)

    Drop the dat: Of course. One file, no complicated setup.

    Share this post


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

    Date: 7/25/2005 10:12:50 AM Author: TinySim Petitioners? No. (They're the old advisors, or am I totally wrong?) Drop the dat: Of course. One file, no complicated setup.
    quote>

    The petioners were the people who came to your office like the NIMBy head and stuff. for example if there was a message in the news ticker about repealing parking fines, you would click on it and a man/ member of the public would be asking you to repeal the orinance.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Oh, ok.

    Anyway I don't think that is possible. I think it's hard-coded into the exe. (If not, I don't have the knowledge to add petitioners)

    Share this post


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

    Is it possible to change those stupid looking SC4 advisors to just a picture of the originals?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Yes, I think that would be possible, however I don't know exactly how to do that.

    While browsing the lua script files, i found one that supposedly controls advisor animation. If you could tweak the file, you might be able to change the advisors to the sc3k petitioners.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    Well, I know a little about LUAs. 3.gif

    First of all, is the package number set up properly? It needs to match the IID, and both the package/IID must start with 0.

    Also, take care to avoid using the dofile function - there are a lot of complications there, since Maxis modifed the function and its parameters.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    Great! The messages show up in the game now.

    However, **_TEXT_NOT_IN_DATABASE_** is written in front of them. Do you really have to place a database reference in there? Because that would mean placing each text in a separate xa file, right?

    I don't want to do that 248 times.
    This is the string format i use:

    a.title = String is placed here

    Is there any other way?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    Yes. Well, actually, you'd have to place the messages into LTEXT files, which some versions of Reader mistakenly identify as XA or Unknown files.

    The format of LTEXT files is really quite simple - I believe you can compose each message as a TXT file and import them all as LTEXTs. Then all you have to do is give the LTEXTs proper IIDs.

    I would recommend using the Reader's .TGI system. Basically, you create a .txt.TGI file containing the proper TGI, one for each file. Then, when you import the TXTs, the Reader will automatically give them the proper TGIs in the DAT.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     
    Date: 7/26/2005 10:48:51 PM
    Author: ardecila
    Yes. Well, actually, you'd have to place the messages into LTEXT files, which some versions of Reader mistakenly identify as XA or Unknown files.
    quote>

    Yes, exactly as I thought. However, creating 247 text files will be a pain in the ***.

    Unless we use the magic of PHP here too. 1.gif

    Edit: Exactly how does this TGI thingy work?
    Do I name the text file filename.txt.0xXXXXXXXX.0xXXXXXXXX.0xXXXXXXXX or what?

    Edit 2: prince_of_sims: Actually, the ticker doesn't get very cluttered. The messages don't appear very often, and it is very rare that they even appear two at the same time.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    So, I have put each text message in a separate file, and batch imported all of them. It still does not work. (Yes, I remembered to put text@xxxxxxxx in front of the messages.

    Can someone take a look at the file, to see whats wrong? (It's attached to this post.)

    Since I auto-generate the script, you'll only have to check the first message creating code section (47.gif), if there is anything incorrect it has been duplicated through the whole script.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    OK - the LTEXTs have to have the same IID as their LUA message section.

    ------------- SC3K Headline #245/247------------
    a = create_advice_fluff(34444bf4)
    a.mood = advice_moods.FLUFF
    a.priority = tuning_constants.ADVICE_PRIORITY_VERY_LOW
    a.title = [[text@34444cf4 Local Kindergartners Prefer Oi Brand Paste; Claim It Just Tastes Better]]
    a.frequency = tuning_constants.ADVICE_FREQUENCY_LOW
    a.timeout = 30
    a.trigger = game.random_chance(.3)
    a.once = 0
    a.persist = 1
    --------------------------------------------------
    quote>

    The LTEXT file containing the string Local Kindergartners Prefer Oi Brand Paste; Claim It Just Tastes Better must have IID 34444bf4.

    Share this post


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

    Great! We were just talking about this in the thread titled Where did all the broccoli go? It's great people are finally integrating things from past Simcity's.


    Check out the SimNew York recreation blog for the latest updates

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     
    Date: 7/27/2005 4:15:00 PM
    Author: ardecila
    OK - the LTEXTs have to have the same IID as their LUA message section.


    ------------- SC3K Headline #245/247------------

    a = create_advice_fluff('34444bf4')

    a.mood = advice_moods.FLUFF

    a.priority = tuning_constants.ADVICE_PRIORITY_VERY_LOW

    a.title = [[text@34444cf4 Local Kindergartners Prefer Oi Brand Paste; Claim It Just Tastes Better]]

    a.frequency = tuning_constants.ADVICE_FREQUENCY_LOW

    a.timeout = 30

    a.trigger = 'game.random_chance(.3)'

    a.once = 0

    a.persist = 1

    --------------------------------------------------
    quote>



    The LTEXT file containing the string 'Local Kindergartners Prefer Oi Brand Paste; Claim It Just Tastes Better' must have IID '34444bf4'.
    quote>

    Ok, I'll try that then. Hope it works.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    I changed the file the way you said, however, now it doesn't work at all.
    ------------- SC3K Headline #1/247------------
    a = create_advice_fluff(34444b00)
    a.mood = advice_moods.FLUFF
    a.priority = tuning_constants.ADVICE_PRIORITY_VERY_LOW
    a.title = [[text@34444b00 Today's Forecast: Cold, Cloudy, With Occasional Showers]]
    a.frequency = tuning_constants.ADVICE_FREQUENCY_LOW
    a.timeout = 30
    a.trigger = game.random_chance(.3)
    a.once = 0
    a.persist = 1

    Share this post


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

    Date: 7/28/2005 12:03:41 AM Author: Hanson784 Great! We were just talking about this in the thread titled 'Where did all the broccoli go?' It's great people are finally integrating things from past Simcity's.
    quote>
    especially as EA are trying to destroy everything...
    command and conquer has been ripped apart by EA, Westwood and bullfrog don't even exist anymore. Maxis is lucky to still be a company.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     
    p2h5: Yes, I know, that's where I took them.


    Is there any one who can help with this problem?
    (See my last post)

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online: A long, long time ago... 
     

    This is a intresting idea, might download.19.gif

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     
    simzebu: Yes, if you have ilive's reader or DatGen, you can do that.

    But anyway, Isn't there anyone who can help with the problem ?

    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