Author Topic: Has anyone been able to mod Toolset?  (Read 8809 times)

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #75 on: July 18, 2011, 09:36:36 pm »


               where to download newest version please?
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #76 on: July 18, 2011, 09:49:00 pm »


               http://social.biowar...45830/3#7735403
               
               

               


                     Modifié par virusman, 18 juillet 2011 - 08:49 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #77 on: July 19, 2011, 03:45:13 am »


               Well i thought that this version used a bugged compiler which was later updated?
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #78 on: July 19, 2011, 05:51:03 am »


               Critical bugs have been fixed long time ago.
You can replace the compiler DLL with a newer version for performance, though.
               
               

               
            

Legacy_Thayan

  • Sr. Member
  • ****
  • Posts: 435
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #79 on: July 19, 2011, 06:07:55 am »


               

virusman wrote...

All warnings go to logs/nwntx_compiler.txt


That log does read this for the problem includes now that I look at that: 
Warning: End of file reached while processing comment
So now that I know what to look for, this tip helps alot. But just as a comment, I do have several packages from the vault, like the tailor models and stuff from Olander's systems, that have a /* at the end of the include which were essentially not recompiling changes using this system because of the includes ending this way. So i would assume that anyone else using them and this compiler would encounter the same issue at the moment.

The PrC compiler provides a similiar warning but actually compiles scripts that had this issue, while this system does not (at the moment). While it would be nice if this could be fixed since I muddled thought this it shouldn't be an issue for anyone reading this thread...hopefully. Just make sure your includes do not have a /* with no */ at the end of them.
               
               

               
            

Legacy_Sylrae

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #80 on: July 20, 2011, 06:54:13 am »


               I'm still having a hard time getting this program to run. (Windows 7 Pro, x86)

"MSVCR100.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support."
               
               

               


                     Modifié par Sylrae, 20 juillet 2011 - 09:32 .
                     
                  


            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #81 on: July 20, 2011, 08:26:15 am »


               My system is x64, so the dll may differ. Remove MSVCR100.dll from the NWN folder and install Visual C++ 2010 Redistributable package.
               
               

               
            

Legacy_Sylrae

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #82 on: July 20, 2011, 10:34:26 am »


               Yep. That's what it was, thanks!

Installing the newest version of the x86 dll and copying *That version* into the nwn dir instead made the program run great. Now to test it out.

But first, sleep.
               
               

               


                     Modifié par Sylrae, 20 juillet 2011 - 09:34 .
                     
                  


            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #83 on: July 21, 2011, 07:56:26 pm »


               Even more amazing additions. Thanks so much!
               
               

               
            

Legacy_Sylrae

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #84 on: July 24, 2011, 11:57:57 am »


               Hmm.

Virusman; I'd like to attempt to alter nwmain.exe (either in memory like you did here, or by altering the actual exe like some of the other modifications to nwn I've seen have done, for the pathfinder project.

I have experience with C/C++/C#, ASM, and Java, (and VB.net if it will be in any way useful), but I only have experience with starting a project from scratch, no real exe hacking stuff (some kiddie stuff with a hex editor and snes roms when I was like 13 to change sprites or text). Stuff like changing how combat maneuvers are calculated, and calculating level 1 skill points, and a few other things like that, mostly.
Do you have any advice on what I should read that would explain the basics of how you go about  of this type of project?
               
               

               


                     Modifié par Sylrae, 24 juillet 2011 - 10:58 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #85 on: July 24, 2011, 06:57:19 pm »


               Hopefully vman will be able to provide a more thorough answer, but this is where he linked me when I asked this:
Click Here

You need a disassembler of some kind, as well. IDA offers their old 5.0 as freeware:
Click Here

Funky
               
               

               


                     Modifié par FunkySwerve, 24 juillet 2011 - 05:58 .
                     
                  


            

Legacy_Sylrae

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #86 on: July 25, 2011, 09:46:09 pm »


               Thanks Funky. I'll give that a read, and I downloaded the decompiler.
               
               

               
            

Legacy_pkpeachykeen

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #87 on: July 28, 2011, 02:27:56 pm »


               

Sylrae wrote...

Hmm.

Virusman; I'd like to attempt to alter nwmain.exe (either in memory like you did here, or by altering the actual exe like some of the other modifications to nwn I've seen have done, for the pathfinder project.

I have experience with C/C++/C#, ASM, and Java, (and VB.net if it will be in any way useful), but I only have experience with starting a project from scratch, no real exe hacking stuff (some kiddie stuff with a hex editor and snes roms when I was like 13 to change sprites or text). Stuff like changing how combat maneuvers are calculated, and calculating level 1 skill points, and a few other things like that, mostly.
Do you have any advice on what I should read that would explain the basics of how you go about  of this type of project?


Assembly and C/C++ are going to be the two skills that'll apply here. 

There aren't many good resources on how to edit an EXE, at least not in a non-destructive way (editing the actual file is a bad idea, not to mention potentially violating the EULA). The documentation on how Microsoft Research's Detours library works is one of the better sources (EasyHook as well). 

You need to know the names/purposes, location and parameters for the various functions in the engine (varies by version) and you need some idea of the data structures used. At that point, you just intercept functions as needed and run your own code before or after or instead of the original function.
               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #88 on: August 09, 2011, 11:38:25 am »


               Is there any source code available for the toolset extender and the compiler mod?

I'd like to try and experiment with making it faster via threading - for paralelle nss processing
(It might mess the progress bar up, but who cares)
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
Has anyone been able to mod Toolset?
« Reply #89 on: August 09, 2011, 01:44:49 pm »


               http://nwn.virusman.ru/svn/nwntx/
Keep in mind, though, that it doesn't take a list of scripts and just compiles it. The plugin hooks the "compile file" function, so you'll probably need to rewrite the Toolset function that calls the compiler.
               
               

               


                     Modifié par virusman, 09 août 2011 - 12:47 .