TTLG|Thief|Bioshock|System Shock|Deus Ex|Mobile
Results 1 to 21 of 21

Thread: Problems with obj_max 8192

  1. #1
    New Member
    Registered: Apr 2011

    Problems with obj_max 8192

    So, I've been following the Absolute Beginner's Guide to try and learn to use DromEd, with a view to making something (terrible) for the 20th anniversary contest. I'm diverting a little from the script in that I'm using Thief Gold (GOG release, NewDark 1.25, with Dromed Basic 1.14) instead of Thief 2.

    Following the steps in that tutorial and the values given in NewDark modders_notes.txt, I changed dark.cfg to have obj_max 8192 instead of the default 2048. When I enter game mode, as soon as I try to jump I get an assertion failure saying gMaxObjID < MAX_PHYSCAST_OBJIDS (File: PHYSCAST.CPP, Line: 609). If I delete the mission, change dark.cfg back to max_obj 2048, then recreate the mission and try again, this doesn't happen. Evidently there's still somewhere (DromEd? Thief?) where there's a different limit on the max object ids. Maybe the 8192 limit is T2 only?

    Can anyone tell me what the highest value I can actually set max_obj to for TG?

  2. #2
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    You need to change other values, too.
    This should work

    ; object counts
    obj_min -18192
    obj_max 8192 8184
    max_refs 47740
    Last edited by Unna Oertdottir; 3rd Apr 2018 at 17:22. Reason: 8192 isn't good

  3. #3
    Desperately Dodgy Moderator
    Registered: Nov 2001
    Location: Fields of bluegrass
    Yeah specifically you need to up max_refs also. We just set it at around 40k for Godbreaker instead of bumping it up a thousand or two every time we hit the limit.

  4. #4
    New Member
    Registered: Apr 2011
    Ah, that explains it. Thanks very much!

  5. #5
    New Member
    Registered: Apr 2011
    Hmm, I'm still getting assertion errors all the time. In dark.cfg I have:

    Code:
    ; object counts
    obj_min -18192
    obj_max 8192
    max_refs 47740
    I've got a few rooms blocked out, and I'm trying to add a chandelier to one. When I do, I get the error:

    Code:
    Assertion Failed
    gMaxObjID < HACK_MAX_OBJ (File: OBJLIGHT.C, Line: 365)
    I just restarted DromEd and in the default new level (in case I'd messed anything up in my other level), tried to add a chandelier, and got the same error again.

    Any idea what I'm doing wrong this time?

  6. #6
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    Type "info_window" in the DromEd console. Post the data.

  7. #7
    New Member
    Registered: Apr 2011
    First, a minor correction to my post above: the error is shown when I portalize after adding the chandelier, not immediately upon adding it.

    info_window shows:
    Code:
    Brush counts:
    1 Terrain, 1 Object
    0 Light, 0 Room
    0 Flow, 0 Area - 0 active
    
    Object IDs:
    2 used, 8189 free (of max 8191)
    
    Created by ... etc. etc.

  8. #8
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    Is this a custom object?
    Whatever, restart DromEd/ reboot the PC, sometimes this helps.

  9. #9
    New Member
    Registered: Apr 2011
    No, this is just the stock chandelier (-53) in Thief Gold. Reboot + restart doesn't help.

    ...

    While trying to work out might be going wrong, I did notice that DromEd has the Thief 2 icon—does Thief Gold need a different version of DromEd than Thief 2? I followed the install instructions here , and noticed that NewDark 1.25 is only Thief 2? Is my problem perhaps that I'm trying to use the NewDark 1.25 DromEd with Thief Gold?

  10. #10
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    In NewDark, DromEd is the same in T1/TG/T2. Be sure you're using dark.gam for TG.

  11. #11
    New Member
    Registered: Apr 2011
    Ok, thanks for clearing up my confusion on that point.

    The only dark.gam in the directory is the one that came with the Thief Gold install (from GOG). So yeah, it should be the right one.

  12. #12
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    Use those values instead

    ; object counts
    obj_min -18192
    obj_max 8184
    max_refs 47740

  13. #13
    New Member
    Registered: Apr 2011
    Chatted with skacky about his setup, and rebuilt my Thief Gold setup for the fourth time, and now it is all working beautifully.

    This is what fixed it (for posterity):

    1. I rolled back my GOG install to the version it calls "31414424", but the exe indicates is NewDark 1.22
    2. Downloaded NewDark 1.23
    3. Followed the install instructions again

    Now everything works without those taffing errors! Hooray!

    As for the cause: I still don't know? Maybe something esoteric in my Windows installation, combined with something in NewDark 1.25 DromEd? But I have a working solution now, so I'm not too inclined to dig any deeper as long as it keeps working.

    Thanks again to all for their help and suggestions along the way.

  14. #14
    Desperately Dodgy Moderator
    Registered: Nov 2001
    Location: Fields of bluegrass
    NOthing to do with NewDark 1.24 or 1.25 I would think, since no one else has this issue that we know of. But glad you got it fixed either way.

  15. #15
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    I opened DromEd 1.25 (in TG) and made that chandelier. It worked.
    Looking into dark.cfg, I noticed that obj_max is set to "8184". I set it to 8192 this time. After restarting DromEd, I made that object again. Crash.
    After changing it to "8184" again, I can create this object, it's working. Don't set obj_max to 8192. It doesn't work.

  16. #16
    Desperately Dodgy Moderator
    Registered: Nov 2001
    Location: Fields of bluegrass
    Interesting find, Unna! I'm guessing that the HACK_MAX_OBJ static variable is declared as exactly 8192 (which happens to be a power of 2, so it's not some magical random number) and so is the first number at which that assert fails since it's looking for obj_max to be < HACK_MAX_OBJ.

  17. #17
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    Looks like 8184 is the highest number that is working
    8186, 8188, 8190, 8192 doesn't work any more.

  18. #18
    Desperately Dodgy Moderator
    Registered: Nov 2001
    Location: Fields of bluegrass
    Guess my theory was wrong then.

  19. #19
    Member
    Registered: Sep 2003
    Location: Cambridgeshire UK
    8184 is old news Read my edit here.

  20. #20
    Desperately Dodgy Moderator
    Registered: Nov 2001
    Location: Fields of bluegrass
    Thanks Freddy! I figured we had been down the path before.

  21. #21
    Dˇttirin klŠ­ist oft mˇ­ur m÷ttli
    Registered: Apr 2015
    Indeed. That's where I found it years ago

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •