Author Topic: NWN Toolset using Linux instalation  (Read 1858 times)

Legacy_Elvard

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
NWN Toolset using Linux instalation
« on: January 06, 2011, 08:05:41 pm »


               Hi there,
I've just tried Toolset in wine and it works much better than in VirtualBox. I think it's useless to have two instalations of NWN (one for linux and playing, one for windows and toolset), so I tried copy nwtoolset.exe and MSS32.DLL, it's working but sometimes it throws error.

So, finally, question is: Which files are required to run nwtoolset.exe in linux? As I said, NWN is installed properly and works fine.

Second question: Is there any way, how to run NWN with specified module directly? Calling Run module from Toolset doesn't work (of course), but I would like to run something like: ./nwn --module xxx ...

Thanks!
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #1 on: March 23, 2013, 06:47:00 pm »


               I'm also using a Linux distro (Ubuntu 12.04) and trying to run the toolset. I first tried Virtual Box running a WindowsXP guest, but everytime I open the toolset it complains about the lack of 3D graphics. I am using 3D Graphics acceleration on the WindowsXP VM. Even tried the crazy notion of installing the drivers in the Windows VM, but that didn't work either as it said it couldn't find the hardware.

So I am using Wine. I copied my Windows installation of NWN to my linux box and stuck it in my home directory then ran VMan's NWNTX from there to launch the toolset. It works, but I would prefer to use a VM.

Has anyone had success with Virtual Box on Ubuntu running the NWN Toolset?
               
               

               
            

Legacy_Nissa_Red

  • Full Member
  • ***
  • Posts: 121
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #2 on: March 23, 2013, 08:24:51 pm »


               The command line options for the client that I'm aware of are rather sparse.

There are many more available for the server.

Now, to answer your question more directly, you can automatically launch a module with :

1/ nwmain.exe +LoadNewModule <module> (without the mod extension)
-> sends you to the character gen screen

2/ nwmain.exe +TestNewModule <module> (without the mod extension)
-> sends you directly in game with the first character (bic file) it finds in your "localvault" folder sorted alphabetically

<module> has to be in the "modules" folder, of course.

I have no idea what "+LoadNewDDModule " does.
               
               

               


                     Modifié par Nissa_Red, 23 mars 2013 - 08:25 .
                     
                  


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #3 on: March 23, 2013, 09:57:13 pm »


               Nissa those look like windows commands, how do they work for Linux?

I couldn't get the comands you posted to work for me on Ubuntu.
               
               

               
            

Legacy_Nissa_Red

  • Full Member
  • ***
  • Posts: 121
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #4 on: March 23, 2013, 10:13:37 pm »


               My apologies. I should have read more carefully what you were after. It seems that some of them do for the server at least, but I could unfortunately not confirm whether the same options for the client on Windows also work on Linux.

Maybe would it be worth asking the question on the nwnx forums ? Sorry I can't offer better assistance.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #5 on: March 23, 2013, 10:29:45 pm »


               yeah, i probably should. '<img'>

my main question however is how others get the toolset to work. I want to get it working in VirtualBox, but the graphics are giving me troubles.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #6 on: March 25, 2013, 02:18:24 am »


               So my solution to this was to use wine for the toolset and linux for the rest. Rather than have two different directories I combined the two.

The process on Ubuntu 12.04:
Install NWN linux.
Install Wine
Then copy the NWNToolset and Utils and related stuff from a windows install, and put those in the directory housing the linux version of NWN.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #7 on: March 29, 2013, 02:30:50 pm »


               the toolset works under vmware.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #8 on: March 29, 2013, 03:11:50 pm »


               I suspected as much, acomputerdood. Thanks for confirming. Is there a free version of VMWare?

Since you are using virtualization you may not have the experience, but I was wondering how (for linux - ubuntu) to create a desktop file that would launch the NWNTX Loader.exe in wine. I've been able to do this for photoshop and Axe's Killer TLK Editor, but not for the NWNTX Loader and can't figure out what I could be doing wrong.

One would think that
EXEC=wine [path to NWNTX Loader.exe]
would work.

But it isn't doing anything. Is there a problem here because the loader in turn points to another executable?

Incidentally I can double click in the GUI on NWNTX Loader to launch it in wine, AND I can use the wine command in the CLI to launch it.
               
               

               
            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #9 on: March 29, 2013, 03:45:23 pm »


               <wiping the blood from his hands...>

VMware Player

<...and pointing wordlessly>
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #10 on: March 29, 2013, 05:33:48 pm »


               Interesting. Thanks, Rolo.

I'm still interested in some help in getting help with my desktop file.
I'm curious as to why a command would work in the CLI but not from a desktop file.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #11 on: March 29, 2013, 06:57:46 pm »


               there's also vmware server (not ESX, though there are free licenses for that, too).  server is EOL'd, but i'm sure you can still find a torrent of it somewhere.  or maybe even on vmware.com if you look harder than i did.

that said, i'm not sure if it works under vmware server (or player).  my earlier statement should have been "it works under vmware workstation".  workstation generally has newer and better drivers for stuff.


as for wine, i've only dabbled in it.  i assume you've seen the nwnx page:
http://www.nwnx.org/...39a72e9f7cf2be7

there's also a (very old) sample wine shortcut here:
http://home.roadrunn...toolset-43.html

#!/bin/sh
NWN=~nwn/      # Path to your NWN directory
export NWN
cd $NWN/nwedit
PATH=$NWN/nwedit/wine/bin:$PATH; export PATH
LD_LIBRARY_PATH=$NWN/nwedit/wine/lib; export LD_LIBRARY_PATH
WINEPREFIX=$HOME/.nwwine; export WINEPREFIX
wine nwtoolset.exe


a more general guide to shortcuts and games is here:
http://ubuntuforums....ad.php?t=462316

perhaps you're not setting your wine environment (WINEPREFIX)?


i'd have to play around with wine to learn more and be of more help.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #12 on: March 30, 2013, 10:15:03 pm »


               No dice with VM Ware Player. The toolset works, but textures only show up in ultra low quality or not at all. I'm thinking I may need to reinstall a windows partition if I want to do NWN dev.

Other issues to work out:
So far on linux I haven't got sound working for NWN, and can't get Excimer's Combinulator working in wine (as I try to merge Project Q's 2das with mine).

Also as is probably obvious to others but which eluded me: I can't "test" my module with my setup since I have a linux player and a windows toolset. The windows toolset under wine errors out when trying to launch a test version of the game. Stupid of me to have not thought that through.

So my options are
- figure out how to tweak the graphics to work in VMPlayer,
- reinstall a windows partition and work like i used to (one OS for NWN, another for everything else)
- tweak all of this stuff to work properly in wine (create a parallel install of the windows version of NWN in the wine directory - and hope that I can use symlinks for all the data directories (hak, tlk, module etc...) so that I am not forced to maintain multiple copies of these resources.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #13 on: March 31, 2013, 02:47:16 am »


               ran into a new problem using wine.

Launch toolset using wine
open Arnheim (large module with scripts that probably require NWNTX and the script optimizer dlls)
open an area.
-- I notice that there is a blank part on the area's resource tree above "creatures"
otherwise the area is fine
make some changes
build module
- scripts start to compile and then I get an error message
"Access violation at adress 007C351C in module 'nwtoolset.exe'. Write of address 0000002E."
but the addresses are not always the same. The script in this module does appear to be the same.


Yet I can create a new module.
Import ERFs and no problem at all.
Wondering if this is Wine causing me problems or whether my modules got corrupted.

[edit]
i don't believe the file is corrupted as the same problem does not exist in vmware.
something odd here....
               
               

               


                     Modifié par henesua, 31 mars 2013 - 01:58 .
                     
                  


            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
NWN Toolset using Linux instalation
« Reply #14 on: April 01, 2013, 12:48:00 pm »


               i ran into only a fraction of the problems you're having when trying to set up my development environment.

not to sound like a cop out, but i gave up on the "everything on one system" solution.  i have a 2nd dev workstation running windows that i rdp to use the toolset.  then for testing, i start up a server and connect over my local network.

not telling you to give up, but.....  '<img'>