Page 1 of 2

Win32 SVN - correct installation

PostPosted: Fri Sep 06, 2013 9:54 am
by pheonixstorm
When downloading from svn the data folder will contain two files: py27_modules and py3_modules. Currently data uses the py3 modules so you will need to upzip the py27 file to get the game to work. You should be able to do this by right clicking on the file and telling it to extract here. This should put the correct files into \modules\builtin

Hopefully in the next month or so I will switch the windows binary over to use py3 and this will no longer be necessary.

Re: Win32 SVN - correct installation

PostPosted: Thu Oct 17, 2013 1:11 pm
by ermo
What are the odds that I could persuade you to try out the VS Windows binaries + python modules with Priv:WCU? :)

Re: Win32 SVN - correct installation

PostPosted: Thu Oct 17, 2013 10:40 pm
by pheonixstorm
WCU or parallel universe? I thought you were trying to update PU??

Re: Win32 SVN - correct installation

PostPosted: Fri Oct 18, 2013 4:15 pm
by ermo
pheonixstorm wrote:WCU or parallel universe? I thought you were trying to update PU??


My Priv:WCU project is PPU at present. I'm planning to update it (the PPU code base that I'm working from) with the data from WCU as per travists's "Frankenstein's Monster is alive"-attempt. :)

I hope that makes sense?

Re: Win32 SVN - correct installation

PostPosted: Sat Oct 19, 2013 12:55 am
by pheonixstorm
Actually... not really

The design for WC based mods was supposed to be...
GG - Privateer clone in every way with nothing new such as turret AI, no new art, ships, etc.
PU - A suped up Privateer adding new ship for purchase, new missions, turret AI, as well as other items not found in the retail Priv release.
WCU - Was supposed to be more like VS only set in the WC universe with far greater gameplay than Privateer. (Models, Scripts, etc)

Re: Win32 SVN - correct installation

PostPosted: Sat Oct 19, 2013 7:54 am
by ermo
pheonixstorm wrote:Actually... not really

The design for WC based mods was supposed to be...
GG - Privateer clone in every way with nothing new such as turret AI, no new art, ships, etc.
PU - A suped up Privateer adding new ship for purchase, new missions, turret AI, as well as other items not found in the retail Priv release.
WCU - Was supposed to be more like VS only set in the WC universe with far greater gameplay than Privateer. (Models, Scripts, etc)


Ok. Travists' plan was to take the ideas from PU and merge in the assets from WCU, making a PU++ where you could travel wherever you wanted in the WC Universe. He wanted to keep the ships more canon, or at least not too over the top, and allow the player to buy and own the ships available in the Wing Commander Universe. The title Privateer: Wing Commander Universe reflects that this grew out of the Privateer: Parallel Universe thinking and into the greater Wing Commander Universe (i.e. beyond the Gemini sector).

In many ways, what I outlined above is the ultimate Privateer experience to me personally. Others may see it differently. :)

Re: Win32 SVN - correct installation

PostPosted: Sat Oct 19, 2013 1:13 pm
by ermo
I just tried the following on Windows:

1. Check out the VS win32 module via TortoiseSVN (succeeded)
2. Check out the privateer_wcu source code via GitHub for Windows (succeeded)
3. Copy the bin\ folder from the VS win32 module to the privateer_wcu\ folder (succeeded)
4. Extract the VS data\py27_modules.7z into the root of privateer_wcu\ (succeeded)
5. Run bin\VS Setup.exe from the privateer_wcu\ root (works)
6. Run bin\vegastrike.exe from the privateer_wcu\ root -- this is where things fall apart for me.

In 6., I only get a missile unit for whatever reason. Is there anything in particular I need to do/set up in a .bat file for privateer_wcu to work on windows? :)

Re: Win32 SVN - correct installation

PostPosted: Sat Oct 19, 2013 3:54 pm
by loki1950
Getting to that missile is the step just before the rest of the game loads itself so it's good as it means that your close try a search on the forums for"no rooms" IIRC that should put you over the top.

Enjoy the Choice :)

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 10:30 am
by ermo
No luck, I'm afraid. All I saw was some C++ patch to convert forward slashes ('/') to double backslashes ('\\') -- was that the issue you remembered seeing?

Another thing: I don't get any console output when I start up the latest vegastrike.exe on Windows as "bin\vegastrike.exe" from my privateer_wcu\ folder.

Is the lack of output a feature -- or is it really a bug?

This is how my privateer_wcu folder looks:

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 11:11 am
by loki1950
Could you post the contents of \pu\modules\builtin just a text list will do with the extensions that way I can verify against what I know works :wink: The next step is to check the syntax of each module tedious but necessary.

Enjoy the Choice :)

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 12:55 pm
by ermo
loki1950 wrote:Could you post the contents of \pu\modules\builtin just a text list will do with the extensions that way I can verify against what I know works :wink: The next step is to check the syntax of each module tedious but necessary.

Enjoy the Choice :)


Code: Select all
C:\Users\ermo\Documents\GitHub\privateer_wcu\modules\builtin>dir
 Volume in drive C is SSD
 Volume Serial Number is 6AF4-FF58

 Directory of C:\Users\ermo\Documents\GitHub\privateer_wcu\modules\builtin

06-09-2013  17:43    <DIR>          .
06-09-2013  17:43    <DIR>          ..
06-09-2013  14:50            10.605 code.pyc
06-09-2013  14:50             6.767 codeop.pyc
06-09-2013  14:50             5.300 copy_reg.pyc
06-09-2013  14:50             3.313 linecache.pyc
06-09-2013  14:50            11.706 ntpath.pyc
06-09-2013  14:50            27.061 os.pyc
06-09-2013  14:50             2.873 stat.pyc
06-09-2013  14:50            20.858 string.pyc
06-09-2013  14:50            11.963 traceback.pyc
06-09-2013  14:50             2.608 types.pyc
06-09-2013  14:50             9.585 UserDict.pyc
06-09-2013  14:50             4.394 __future__.pyc
              12 File(s)        117.033 bytes
               2 Dir(s)  131.101.786.112 bytes free

C:\Users\ermo\Documents\GitHub\privateer_wcu\modules\builtin>dir ..\..\py27_modules.7z
 Volume in drive C is SSD
 Volume Serial Number is 6AF4-FF58

 Directory of C:\Users\ermo\Documents\GitHub\privateer_wcu

19-10-2013  20:48            32.801 py27_modules.7z
               1 File(s)         32.801 bytes
               0 Dir(s)  131.088.990.208 bytes free

C:\Users\ermo\Documents\GitHub\privateer_wcu\modules\builtin>

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 2:21 pm
by loki1950
I think I see what might be an issue all of those files are .pyc which means that they are compiled and my bultin dir has 132 items most of which are .py not compiled so there seems to be a lot missing at first glance.

Enjoy the Choice :)

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 4:51 pm
by ermo
loki1950 wrote:I think I see what might be an issue all of those files are .pyc which means that they are compiled and my bultin dir has 132 items most of which are .py not compiled so there seems to be a lot missing at first glance.

Enjoy the Choice :)


I just tried deleting the 7-zipped python modules in my working copy of the Win32 SVN module and then doing an 'svn up' -- the result is the same, py27_modules.7z is ~33KB and only contains .pyc files, while py3_modules.7z is ~26KB and also only contains .pyc files.

What gives? Bad build?

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 5:50 pm
by loki1950
Not sure but the use of only .pyc file may be one of the new things that Python 3.0 supports that 2.7 does not.

Enjoy the Choice :)

Re: Win32 SVN - correct installation

PostPosted: Sun Oct 20, 2013 10:36 pm
by pheonixstorm
pyc is supported by all python versions I believe. It is just a compiled py file.

Re: Win32 SVN - correct installation

PostPosted: Mon Oct 21, 2013 4:30 am
by ermo
pheonixstorm wrote:pyc is supported by all python versions I believe. It is just a compiled py file.


Is it possible to make a more 'full-fat' py27_modules.7z to check whether that makes any difference? And what about the missing console output from vegastrike.exe?

P.S. Should this discussion be taken elsewhere? :)

Re: Win32 SVN - correct installation

PostPosted: Mon Oct 21, 2013 11:03 am
by loki1950
And what about the missing console output from vegastrike.exe?


Have look at C:\Users\user name\AppData\Local\VirtualStore\Program Files\Vega Strike\Vegastrike-0.5.0\bin

Enjoy the Choice :)

Re: Win32 SVN - correct installation

PostPosted: Mon Oct 21, 2013 2:03 pm
by ermo
loki1950 wrote:
And what about the missing console output from vegastrike.exe?


Have look at C:\Users\user name\AppData\Local\VirtualStore\Program Files\Vega Strike\Vegastrike-0.5.0\bin


It's empty, I'm afraid. Oh well, guess I'll have to fix it myself by compiling my own binary with VS 2008 Express C++ (2010 is only used for python >= 3.3) ... :roll:

EDIT: Hang on a minute ... I have python 3.3 x64 installed -- could that be interfering with the loading of vegastrike and its python27.dll?

Re: Win32 SVN - correct installation

PostPosted: Wed Oct 23, 2013 3:42 pm
by ermo
Well, that's just great. :evil:

Apparently, the official python 2.7 sources require Visual Studio C++ 2008 to compile. But the VS 2008 C++ Express edition does not appear to be available anywhere on Microsoft.com anymore?

@pheonixstorm: Which compiler version did you use to create the python 2.7 .dll?

Re: Win32 SVN - correct installation

PostPosted: Wed Oct 23, 2013 7:10 pm
by pheonixstorm
It was compiled by someone else using VC 2010

still there are no rooms in basefile "main_menunight.py" ...

PostPosted: Wed Dec 04, 2013 8:06 am
by Zolk
Hello!

I checked out latest svn version 13666.
I extracted data/py27_modules.7z to data/modules/builtin.
I installed Python 3.0.
Still I get the no rooms error.
I've Windows 8.1.
I've attached stderr.txt and stout.txt.

What did I miss?

Thank you for helping in advance,

Further information found

PostPosted: Wed Dec 04, 2013 8:13 am
by Zolk
Hi!

Sorry I didn't see it with my last post, but the problems seems to be that the programm finds code on mount E: .
E: is my old windows installation, kept for backup purposes, and of course there was also an vegastrike installation.
But this is a fresh Windows installation and a fresh svn checkout on D:. How do I stop the programm VS Setup oder vegastrike looking at E:?

Re: Win32 SVN - correct installation

PostPosted: Mon Dec 09, 2013 5:20 am
by shenle
So I'm still getting the "no rooms" bug. Since it started showing up I have been completely unable to make VS work in Windows.

I have just wiped out any trace of VS from my system, then did a fresh SVN checkout of rev. 13666. I unzipped the py27_modules package and added the contents of additional_libs and missing_libs from this thread: viewtopic.php?f=1&t=18673&start=25&hilit=no+rooms (which were not present in my fresh checkout of win32 in the modules/builtin directory). Still get the no rooms missile picture and nothing else. See stderr and stdout attached. Also attaching a list of files in modules/builtin (listing was done under git-bash therefore the unix format of the list - but this is on Windows)

Re: Win32 SVN - correct installation

PostPosted: Mon Dec 09, 2013 2:26 pm
by klauss
Did you see this post?

Re: Win32 SVN - correct installation

PostPosted: Mon Dec 09, 2013 8:21 pm
by shenle
klauss wrote:Did you see this post?


Yes I did. I am missing a bunch of modules listed there. I don't know where to get them, since a package was never made with all the ones I don't have. The latest distribution of python 2.7 for windows (2.7.6) doesn't have them. There are a bunch of source python files .py but not compiled modules. If those are required to run the svn binary, why not include them in the svn?

(edit) I tried transferring the missing .pyc modules from python 2.7 from an installation of Ubuntu. No effect.