Author Topic: Linux Users!  (Read 20808 times)

0 Members and 1 Guest are viewing this topic.

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #15 on: December 11, 2009, 12:27:43 AM »
No, just bogged down in a big gold handling rewrite. Linux is my primary OS and development environment, so as long as I'm coding, there's going to be linux support :)

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #16 on: December 15, 2009, 04:24:41 AM »
New Linux binary.  Needs the 1.29.4.0 windows upgrade.

Gold is buggy as hell. Working on that, but you may want to stay with the previous version for now :)

[edit]
This version has a fix for the gold problem.  Probably still a lot of gold bugs, but at least it's possible to turn a profit :)

http://www.mediafire.com/?j3zdmmwyntm#
« Last Edit: December 15, 2009, 05:24:31 AM by DocClox »

Offline Nuller

  • Newbie
  • *
  • Posts: 9
Re: Linux Users!
« Reply #17 on: December 15, 2009, 07:50:16 AM »
ScreenMode.txt isn't being read.
ran with strace, looks like a missed windows->linux directory conversion:
open(".\\ScreenMode.txt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
renaming it to .\ScreenMode.txt works of course, so not a big deal.
« Last Edit: December 15, 2009, 07:52:53 AM by Nuller »

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #18 on: December 15, 2009, 08:41:06 AM »
Thanks for the report. Here's a fixed version:

http://www.mediafire.com/?42gzty2mntm#

Do you get an oversized "Weapon Level" button on staff management when you whack up the screen size?

Offline Nuller

  • Newbie
  • *
  • Posts: 9
Re: Linux Users!
« Reply #19 on: December 15, 2009, 09:14:19 AM »
Sure do, as well as anything that's not a 4:3 resolution cutting off all the buttons.
Just noticed something else, not sure how pertinent it is, could just be a display issue, but the console report for the end of week income has the exact same value for both cash outs:
Code: [Select]

Week End begins: value    = -30821
               : income   = 1140
               : upkeep   = 946
               : cash in  = 0
               : cash out = -1301 <----
Added Bothel 0: value    = -30821     |
               : income   = 24909     |
               : upkeep   = 31726     |
               : cash in  = 0         |
               : cash out = -1301 <-- these two are always the same
Week End Final : value    = -37638
               : income   = 0
               : upkeep   = 0
               : cash in  = 0
               : cash out = 0
« Last Edit: December 15, 2009, 09:20:49 AM by Nuller »

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #20 on: December 15, 2009, 09:24:40 AM »
I've got a fix for the big "+" button. Scaling the buttons properly for widescreen aspect ratios will need a little more thought. I should also  see about scaling up the fontsize in step with the screen size

[edit]

It's like waiting for a bus, I expect. Nothing for ages, then three come at once. 1.29.4.2:

http://www.mediafire.com/?iwd1nmqnyqj#
« Last Edit: December 15, 2009, 05:08:31 PM by DocClox »

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #21 on: December 16, 2009, 12:12:58 PM »
1.29.4.3

http://www.mediafire.com/?mjyjwxyynzt#
  • Mystery Money" bug fixed.
  • Rivals should now respawn
  • Matrons should level properly - with a 20% chance per turn.
  • Matron wages go up according to skill level
  • May have solved the intermittent "Next Week" crash, although more likely it will just move.
  • Added a little more information to the player home screen
And for once it's completely in step with the windows version :)

[edit]

1.29.4.4: http://www.mediafire.com/?tj0auinemfm#
  • Added cRng methods is_boy() and is_girl() for deciding baby gender
  • Fixed problems with pregnancy and config file
  • Fixed (I hope) problems with sterile girls getting up the duff
  • Fixed initial money doubling problem
  • Fixed profit misreport if you buy a girl and then do nothing with her.
1.29.4.5: http://www.mediafire.com/?ywgwbnywyzg#
  • Updated config file included
  • Player's children no longer have stats capped at 20
  • MILF now only happens for a human baby - was only happening for monsters
  • config file cooldown/pregnancy/full-grown times seem to be working.
  • Amended the gambling % to read "Payout Odds" so it's clear who wins if the % comes up
  • Added monster and slave sales to the tariff.
  • Creature and son sales now take prices from tariff.
1.29.4.6: http://www.mediafire.com/?zmzuzixnzmo#
  • Made the chance of a girl getting raped a config option.
  • Made chances of gang stopping a rape depend on num gangs and on their intelligence
  • Added some more options to the outcome when a rape is stopped.
  • New upload with fixed config file (or get the one attached to the windows release post)
« Last Edit: December 20, 2009, 01:29:58 AM by DocClox »

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #22 on: May 15, 2010, 04:33:31 AM »
Arise, My Undead Servant!

In case anyone's interested, I've just committed a handful of minor fixes to get the native Linux version working again. Revision 379 is running here on my laptop.  Now that the source is available, I expect most people will prefer to build the game for themselves, but if anyone has problems, I can always upload a binary

Offline slate

  • Donator
  • *****
  • Posts: 25
Re: Linux Users!
« Reply #23 on: May 15, 2010, 07:41:26 AM »

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #24 on: May 15, 2010, 08:08:44 AM »
fixed in 382

Offline slate

  • Donator
  • *****
  • Posts: 25
Re: Linux Users!
« Reply #25 on: May 16, 2010, 02:36:26 AM »
I still cannot build and install the game from svn with neither r382 nor r385.
on r385 make says:
main.cpp:8:22: error: Revision.h: No such file or directory
make: *** [makefile.deps] Error 1


What is the build process?

The svn does not seem to contain all the data files needed. If I can use the resources from 1.30 than it is ok.

Offline slate

  • Donator
  • *****
  • Posts: 25
Re: Linux Users!
« Reply #26 on: May 16, 2010, 02:52:19 AM »
Also r384 introduced an undefined function: cJobManager.cpp:644: error: ‘random_shuffle’ was not declared in this scope
Apparently the developers do not make a clean build on every commit.


Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: Linux Users!
« Reply #27 on: May 16, 2010, 03:02:15 AM »
random_shuffle() is part of the STD library, and it's working fine on Windows; as far as I know it should work the same on Linux, but I don't have a Linux build environment to test it in.

Revision.h should be generated automatically to contain the SVN revision, though I don't know if Doc has added that to the Linux build yet or not.
If you just want to add the file in for now, just create it and plop this into it:
Code: [Select]
static char svn_revision[] = "385";

Offline slate

  • Donator
  • *****
  • Posts: 25
Re: Linux Users!
« Reply #28 on: May 16, 2010, 03:07:40 AM »
succesfully built 382 on linux.
I have made the following hacks:
copy 1.30 (r342 release) to ~/wm

cp Revision.wcrev Revision.h
Edited Revision.h:
put in r382
inserted pragma once in the first line, because make complained about circular include
edited install section in the makefile:
install: WhoreMaster
        cp WhoreMaster ~/wm
        cp -r Resources/* ~/wm/Resources/

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: Linux Users!
« Reply #29 on: May 16, 2010, 03:25:02 AM »
The mk_rev script ought to create a new version of Revision.h whenever any of the cpp files are out of date. I'm not sure it works very well. The circular dependency problem suggests that it isn't working that well...

Of course, it would work MUCH better if I remembered to add it to svn...

This is the binary I'm currently playing, if anyone's still having problems

http://www.mediafire.com/?3mnjwnmyxtr

I get the random_shuffle thing, too, btw. Turns out cJobManager.cpp needed #inlcude <algorithm> at the top. Presumably one of the MS headers includes it somewhere deep in the include tree, where the GCC headers don't.

Fixed and committed: svn 38v, which just built locally.