Tweaking reactive temples

Discussion in 'General Modification' started by hammyh, Sep 11, 2021.

Remove all ads!
  1. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    I was thinking to play around with a some of the conditions/mobs for triggering the lvl2 reactive temples. And maybe adding the ogre cave to Ashrem's gang for personal fun.

    in theory, anything called after py00439script_daemon elif (cur_map == 5067): should be called/checked, which should automatically occur when the party enters.

    What forces this file call? (it's not automatic, apparently).
     
  2. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    It's triggered on map change (san_new_map event).
    The san_new_map script from script_daemon.py is actually assigned to one of your PCs at the beginning of the game.
     
  3. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    .
    Hmm, so in the case of an existing saved game...is a reference to the function saved to the save-game file? ( ie, save-dependant). It doesn't seem to be dynamic for an existing save.

    Ok. I'll think about in that context.
     
    Last edited: Sep 11, 2021
  4. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Do you mean if the function itself is saved? It's not, if you change the script it'll affect the game.
    Note that it's overridden in Temple+ (inside co8fixes.dat), so make sure to use that file as base.
     
  5. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    Ahh...ok. That's the key. I looked through Temple+ [too] briefly for a reference but didn't see anything. So I was then testing changes to the original temple directory.

    Thanks.
     
  6. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    Ok. I found it in the extracted .dat.

    Is there a temple+ "guide" thread to read?
    For example, will T+ read an extracted directory structure, or only the .dat? And recommended current extractors/insertion tools, etc.

    I've run ToEE so many times, I can't avoid the itch to do a little experimenting. ;)

    (it also breaks up the routine testing)
     
    Last edited: Sep 11, 2021
  7. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
  8. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    A question about the file loading:
    It says the override folder has precedence. Yet when I put any folder, including a /scr directory without or within another directory, the log says:
    "Ignoring override folder x". Does the override require a .dat file?
     
  9. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Did you follow the instructions in the "User file overrides" section? In particular mod_specs.json.json
     
  10. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    That was that issue. The log now states:
    Registering override folder funstuff
    Unable to add archive funstuff: 1

    And "funstuff" is not displayed above the version number on ToEE main menu screen
    (I couldn't find more info on this error, other than a reference to tio_path_add )


    Edit: My wild guess was indeed a win10 home version compression fail. o_O. (Tio)
     
    Last edited: Sep 12, 2021
  11. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    I take it problem is solved? What was the issue exactly?
     
  12. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    No change. I don't know.

    I did try decompressing and compressing the co8fixes.dat (with some file tweaks) using Tio. That was successful. Tio with bad parameters can crash the win10home dos client.
     
  13. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Weird. What are the files in there? Can you upload?
     
  14. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    331
    Likes Received:
    65
    Currently the error is thrown with no files other than the empty file mod_specs.json in a folder (currently called "funstuff"). I've tried a few files within...and same result. These were /scr/itt.py and /co8fixes/scr/py00439script_daemon.py.

    Would an empty folder (with no .py files, etc.) or incorrect file structure cause such an error?

    I'm guessing that tio_path_add fails to pack the directory and this error is thrown and reported.

    I'll dig down deeper when I have time, but it will probably take a while to learn and dig.
     
    Last edited: Sep 13, 2021
  15. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    That's weird as hell... it's using the same method used to add the data\ folder, so no idea why that's failing.
     
Our Host!