TTLG|Jukebox|Thief|Bioshock|System Shock|Deus Ex|Mobile
Page 7 of 7 FirstFirst ... 234567
Results 151 to 163 of 163

Thread: NVScript v1.2.7

  1. #151
    Member
    Registered: Mar 2001
    Location: Ireland
    Thanks, Yandros.

    More specifically, it would skip the first letter of the archetype name, but only if you didn't specify a maximum distance.

  2. #152
    Member
    Registered: Sep 2003
    Location: Sioux Falls, SD
    The titles for the links for the System Shock 2 and Thief Gold scripts were reversed when I tried to download them.

  3. #153
    Member
    Registered: Mar 2001
    Location: Ireland
    Oops. I fixed the links.

  4. #154
    Member
    Registered: Oct 2002
    A basic technical question: how exactly do I install NVScript? Do I just place nvscript.osm in the [D:\Whatever\Thief 2] directory, or do I need to do something else as well?

    I'm asking because I did a reinstall of T2 last year, so now it's missing pretty much every optional bell and whistle except for NewDark 1.27 and a copy of squirrel.osm in the game directory. I'm having probably scripting-related malfunctions in an FM and I suspect it might be because I don't have NVScript. However, the last time I've installed it must have been close to a decade ago, I no longer remember how I did it back then, and this thread doesn't seem to say so. Hence the question.

  5. #155
    Member
    Registered: Jan 2001
    Location: Constantly losing tug o'war
    Yes, it can go in your T2 directory.
    You will also want tnhScript (1st link here: https://dromed.whoopdedo.org/tnhscript/index - you only need to extract the two .osm files and "dh2.osl")
    Also Telliamed's rewrite of script.osm: https://dromed.whoopdedo.org/public_scripts/index - one of the 'script...osm files', depends on which game, renamed to 'script.osm' after extracting. The included 'version.osm' looks like it's the same for both downloads.

    If this is just for playing FMs, the above should be sufficient.

    Sometimes FMs include their own copies of the required scripts, which is both good and bad. Good if the player doesn't already have them, bad if the FM is using an older version which doesn't work on newer computers, but that's only worth investigating if you still have problems.

  6. #156
    Member
    Registered: Oct 2002
    Thanks!

    That actually helped at least partially fix the thing. Will continue pursuing this in the specific FM's thread, but this was already helpful!

  7. #157
    Member
    Registered: Mar 2001
    Location: Ireland
    New Update: NVScript v1.2.9

    The main new thing here is that the archives now contains full source code for all scripts - something I'd been meaning to add for years, but never got around to until now.


    Downloads are in the first post of the thread.

  8. #158
    Member
    Registered: Apr 2011
    Quote Originally Posted by Nameless Voice View Post
    The main new thing here is that the archives now contains full source code for all scripts - something I'd been meaning to add for years, but never got around to until now.
    thank you! having source code available is really great, to learn from if nothing else!

  9. #159
    New Member
    Registered: Apr 2020
    Quote Originally Posted by Nameless Voice View Post
    New Update: NVScript v1.2.9

    The main new thing here is that the archives now contains full source code for all scripts - something I'd been meaning to add for years, but never got around to until now.
    Fantastic! Thank you for the source code!

  10. #160
    Member
    Registered: Jan 2001
    Location: Constantly losing tug o'war
    NV, I think there's something not quite right about NVTweqDevice.

    I've been trying it on an object with 2 joints, but it only works on the primary joint
    Properties:
    Tweq Joints:
    Halt: Stop Tweq
    AnimC: Sim
    Primary Joint:1
    Joint1AnimC: Sim
    rate-low-high: 25, 0, 90
    (Same for joint 2)

    Tweq JointsState:
    all [None]
    If I change the above so that Joint2AnimS is On, the second joint goes foward on TurnOn, but on TurnOff it sort of jiggles a bit and remains in the 'foward' position.

    I had a look at your source code to see how the Tweqs were being activated* to see how to do this in Squirrel.
    I noticed something:
    You declare a charcter array of 16 chars, then the loop writes ControlJointi to it, but then it writes JointiAnimS to it. The latter is 2 characters shorter, so when i is 4, would that buffer actually contain Joint4AnimSt4?

    *thought it would be a dedicated function but learned it was just setting property fields

  11. #161
    Member
    Registered: Mar 2001
    Location: Ireland
    No, the C++ string functions will automatically null-terminate the string being printed, it won't leave the old contents in there.
    For TurnOff, it should be setting all of the requested joints to "On, Reverse"

    IIRC, there was some oddness with the primary joint when trying to animate multiple joints on the same object, and the animation of all joints will stop when the primary joint finishes.

    What design note are you using?
    I believe you need to specify every joint that you want it to control, with a non-zero value:

    Code:
    NVTweqDeviceControlJoint1=1; NVTweqDeviceControlJoint2=1;

  12. #162
    Member
    Registered: Jan 2001
    Location: Constantly losing tug o'war
    The above does make both joints work, thanks.
    It could do with being added to the documention.

  13. #163
    Member
    Registered: Mar 2001
    Location: Ireland

Page 7 of 7 FirstFirst ... 234567

Posting Permissions

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