SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Sub/Naval + Other Games > Indie Subsims
Forget password? Reset here

View Poll Results: Would you play OpenSSN on Windows?
Yes, please make OpenSSN available on Windows 14 93.33%
No, I already have subsims I like on Windows 1 6.67%
I don't use Windows 0 0%
Voters: 15. You may not vote on this poll

Reply
 
Thread Tools Display Modes
Old 09-04-11, 12:17 PM   #16
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

You can just redefine them with a precompiler statement.

#if _MSC_VER
#define snprintf _snprintf
#define strncmp _strnicmp
#endif

Etc... This will be ignored by the linux compilers and will properly replace the functions under MSVC
magicstix is offline   Reply With Quote
Old 09-04-11, 01:24 PM   #17
redtyphoon
Sailor man
 
Join Date: May 2011
Posts: 45
Downloads: 0
Uploads: 0
Default MSVC

I think the define statements make sense short-term, to get OpenSSN up and running now. Long-term though I have concerns about patching against specific compilers. There are a lot of C/C++ compilers out there. Ideally I'd like to have a solution in place that will work on Windows, regardless of which compiler is used.
redtyphoon is offline   Reply With Quote
Old 09-05-11, 06:55 AM   #18
FERdeBOER
XO
 
Join Date: Mar 2002
Location: Spain
Posts: 431
Downloads: 22
Uploads: 1
Default

I will play openssn in Linux, but if you can port it to Windows you will enlarge your audience...

I think is more a matter of how much time you have at your disposal and how much of this time will the windows port need.

PS: i've just sent to you an outdated Spanish manual translation.

I have very little spare time this last month...
__________________
Hay dos tipos de buques: los submarinos... y los blancos.
There are two types of ships: the subs... and the targets.
FERdeBOER is offline   Reply With Quote
Old 09-05-11, 02:10 PM   #19
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

Typhoon, if you want me to upload the windows binaries to SF my username is magic-stix.
magicstix is offline   Reply With Quote
Old 09-05-11, 02:25 PM   #20
redtyphoon
Sailor man
 
Join Date: May 2011
Posts: 45
Downloads: 0
Uploads: 0
Default Upload access

I've granted the account magic-stix release file access, which should allow you to upload binaries to the mirrors. If it's not working, please let me know.
redtyphoon is offline   Reply With Quote
Old 09-05-11, 02:58 PM   #21
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

Windows version is up.
magicstix is offline   Reply With Quote
Old 09-05-11, 04:30 PM   #22
redtyphoon
Sailor man
 
Join Date: May 2011
Posts: 45
Downloads: 0
Uploads: 0
Default Windows version

Thanks!
Before announcing the new version I downloaded and tried to give it a run (I've got WINE) and I'm getting the "incorrect application configuration" message which so commonly plagues MSVC developers. Could you check to see if a DLL is missing?

This page has details on how to cover all the bases:
http://www.virtualdub.org/blog/pivot/entry.php?id=296
redtyphoon is offline   Reply With Quote
Old 09-05-11, 04:56 PM   #23
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

Hmmm. That's odd, the game works fine for me right out of the zip. Does it say which dll is missing?
magicstix is offline   Reply With Quote
Old 09-05-11, 04:59 PM   #24
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

OK I pulled the zip and ran it on my other windows machine and got an error. I'll look into it, i think I'm probably missing the msvc c runtime dll.
magicstix is offline   Reply With Quote
Old 09-05-11, 05:01 PM   #25
redtyphoon
Sailor man
 
Join Date: May 2011
Posts: 45
Downloads: 0
Uploads: 0
Default DLLs

No, the error doesn't say which DLLs are missing. But one of the prime characteristics of the "incorrect configuration" error is that people with MSVC installed on their machines can run the program fine, but people without MSVC cannot. It's pretty common. The list of problem DLLs is available in the link I posted.

Update: I just you beat me to a follow up post.
redtyphoon is offline   Reply With Quote
Old 09-05-11, 05:36 PM   #26
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

For some reason it keeps trying to use the debug versions of the Visual C runtime libraries, I've gone back and rebuilt openSSN and all of its dependencies but the deps seem to still want to use debug symbols... I'll poke around at it some and see if I can fix it.
magicstix is offline   Reply With Quote
Old 09-05-11, 06:01 PM   #27
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

OK try it now. For some reason the SDL_gfx.dll was trying to link against debug symbols for the C runtime regardless of how I built it, so I built it with static linking of deps instead. Works on both of my windows machines now.
magicstix is offline   Reply With Quote
Old 09-05-11, 07:04 PM   #28
redtyphoon
Sailor man
 
Join Date: May 2011
Posts: 45
Downloads: 0
Uploads: 0
Works A-ok here

The new package works a-ok here. Everything seems to be intact and i was able to run it (emulated) and play through a mission. Very nicely done, sir. I will make the appropriate announcements.

Thank you very much for your hard work.
redtyphoon is offline   Reply With Quote
Old 02-10-12, 09:50 AM   #29
CTarana
Bosun
 
Join Date: Jan 2009
Posts: 68
Downloads: 28
Uploads: 0
Default

I would definately be interested in seeing OpenSSN ported over to WindowsXP, Vista or 7. I use XP myself and the last version of OpenSSN I have works great. I have version 0.7. I just installed copies of MinGW C++ and Microsoft Visual Studio 8 for another project I'm working on. I'm trying to teach myself C++ and Visual Basic so I can port an older Visual Basic 5.5 program and finish it!

ChristopherT
CTarana is offline   Reply With Quote
Old 02-10-12, 10:47 PM   #30
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by CTarana View Post
I would definately be interested in seeing OpenSSN ported over to WindowsXP, Vista or 7. I use XP myself and the last version of OpenSSN I have works great. I have version 0.7. I just installed copies of MinGW C++ and Microsoft Visual Studio 8 for another project I'm working on. I'm trying to teach myself C++ and Visual Basic so I can port an older Visual Basic 5.5 program and finish it!

ChristopherT
There's already a windows version out there, it's kinda old though...
magicstix is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.