Author Topic: getting unstuck  (Read 36586 times)

0 Members and 1 Guest are viewing this topic.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: getting unstuck
« Reply #15 on: February 28, 2010, 07:18:57 PM »
All right, with Necno's approval I've opened SVN and Trac for anonymous read-only access. Details:
http://pinkpetal.org/index.php?topic=268.msg5316#msg5316
See here for the URLs of each:
http://pinkpetal.org/index.php?topic=191.0

If you're a code monkey and think you might be able to contribute anything, large or small, feel free to download the current source from SVN, make your changes, and post the modified files attached to a forum post somewhere around here. You might of course check before starting as to whether we'll want to actually implement your change(s), unless you're just primarily doing it for yourself.
If you're interested in joining the team after a couple of such submissions, it's definitely possible.

EDIT: note that if the above links don't work for you, it's because you need to be logged into an account on the forum to access the Dev Discussion board which those are posted in.
« Last Edit: March 03, 2010, 12:28:00 AM by Dagoth »

Offline LordJerle

  • Full Member
  • ***
  • Posts: 239
Re: getting unstuck
« Reply #16 on: February 28, 2010, 09:51:53 PM »
Bloodshed Dev C++ is a good editor, and you can set it up to work with the gcc compiler if that's what you're using.

Offline delta224

  • Dev Team
  • *****
  • Posts: 577
Re: getting unstuck
« Reply #17 on: February 28, 2010, 11:05:22 PM »
On windows we have been using visual c++ express 2008 or some edition of it which you can get for free through microsofts website.

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: getting unstuck
« Reply #18 on: March 01, 2010, 03:49:34 PM »
All right, with Necno's approval I've opened SVN and Trac for anonymous read-only access. Details:
http://pinkpetal.org/index.php?topic=268.msg5316#msg5316
See here for the URLs of each:
http://pinkpetal.org/index.php?topic=191.0

If you're a code monkey and think you might be able to contribute anything, large or small, feel free to download the current source from SVN, make your changes, and post the modified files attached to a forum post somewhere around here.

Might it be worthwhile pointing the "news" link at that announcement?

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: getting unstuck
« Reply #19 on: March 01, 2010, 04:01:33 PM »
Fair enough, done.

Offline altereggo

  • Newbie
  • *
  • Posts: 14
Re: getting unstuck
« Reply #20 on: March 01, 2010, 07:07:11 PM »
*Takes a look*
That's some nice code.

I'm trying to compile a testbed version (I don't want to bother you guys with code that isn't pre-tested, because half of everything I do will cause crippling errors), but my compiled .exe crashes on loading.
Compiling wmfix2 I get no errors but 33 warnings--mostly 'signed/unsigned' and "use ISO compliant code"--but also this:

cinventory.h(124) : warning C4715: 'sEffect::stat_name' : not all control paths return a value

Here's a piece of the the relevant code:

        const size_t n_stats = (sizeof(stats) / sizeof(stats[0]));
        if(id < n_stats) {
            return stats[id];
        }
        cerr << "Error: stat id " << id << " too large (max is " << n_stats << ")" << endl;
    }
The exe compiled successfully, but after entering a name and clicking 'ok' (or loading a save) I get many of these errors, followed by a crash:

no desc attribute found
Item:
Desc:
Type: Unexpected type value: -842150451 (actual number seems random)
Error
Badness: 205 (also random)
Special: error: unexpected special value: -842150451
Error(-842150451)
Cost: -842150451
Rarity: error: unexpected rarity value: -842150451
Error(-842150451)
Infinite: False
Effect: error: unexpected 'what' value: -842150451
Error(-842150451) -842150451

The .exe is also smaller than the release version (481kb vs 527kb). Anyone know what I'm doing wrong?
« Last Edit: March 01, 2010, 07:09:33 PM by altereggo »

Offline Wispowill

  • Jr. Member
  • **
  • Posts: 51
Re: getting unstuck
« Reply #21 on: March 01, 2010, 07:31:10 PM »
What's needed to access SVN, just a client? It's been 20-years since I did any regular programming, but this might be a good excuse to finally try to learn something about a more modern language. I doubt I'll ever be able to contribute anything useful, but it would be interesting to at least take a look.
 

Offline Solo761

  • Administrator
  • *****
  • Posts: 175
Re: getting unstuck
« Reply #22 on: March 01, 2010, 07:36:37 PM »
I just DL-ed current trunk (rev 242) and it compiled without problems. I got 143 warnings (this is usual) but no errors, exe is 614 kB.

Do you have all the SDL stuff that's needed to successfully compile it? There's dependencies.txt file in root of the source with SDL stuff you need to have.


@Wispowill

Yes, just client, I use tortoise SVN.

Offline delta224

  • Dev Team
  • *****
  • Posts: 577
Re: getting unstuck
« Reply #23 on: March 01, 2010, 07:41:43 PM »
To access svn you will need a svn client like tortisesvn or rapidsvn.
 
@altereggo The reason for the issue is that you need the resource files such as the dlls, the font and the resource folder.  Also make sure you are compiling the trunk.
« Last Edit: March 01, 2010, 07:46:07 PM by delta224 »

Offline altereggo

  • Newbie
  • *
  • Posts: 14
Re: getting unstuck
« Reply #24 on: March 01, 2010, 10:03:20 PM »
Ah ha. Was trying to compile the wrong bloody thing.
Thx for the help everyone--last time I did a group project we were using floppies to pass files around. good ol' middle-school time-wasting.
I won't be much help, but maybe I can do some grunt work once I get the hang of it.

Would wmfix2 (under tag: release 1.29.3) compile, for curiosity's sake? For practice I'd like to edit an old version whose quirks I'm familiar with, and which is fully functional aside from whatever damage I did myself.

Solo, thanks for the heads up in dependencies.txt. First time compiling the trunk I saw the error and shouted "motherfucker! I spent an hour updating my library, and now you want more things?!"

Was surprised by all the warnings, but they all seem pretty nitpicky or irrelevant ("Oh noes, this porn isn't ISO compliant!")...

Love the new content.
« Last Edit: March 01, 2010, 10:53:29 PM by altereggo »

Offline altereggo

  • Newbie
  • *
  • Posts: 14
Re: getting unstuck
« Reply #25 on: March 04, 2010, 02:08:41 AM »
Problem solved. It was a library issue after all: my version of SDL_gfx.dll was wrong, but replacing it with the version solo linked to in dependencies.txt (under 'trunk') fixed everything. Hope this saves someone else from having the same frustrating damn problem.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: getting unstuck
« Reply #26 on: March 04, 2010, 05:36:40 AM »
Was surprised by all the warnings, but they all seem pretty nitpicky or irrelevant ("Oh noes, this porn isn't ISO compliant!")...
Yeah, I think I'll give a shot at cleaning up most of those piddly warnings in my next commit. It is indeed a mild nuisance seeing them all scroll by when you compile.

Offline Gogon78

  • Newbie
  • *
  • Posts: 3
Re: getting unstuck
« Reply #27 on: March 04, 2010, 03:42:16 PM »
Damn it, I have the same problems as Alterego (everything compiles but gamecrash on startup), and that link from Solo is dead. Can anyone be bothered to put up a pack of all the needed dependencies or at least that pesky SDL_gfx.lib of the working version? The guy who makes it doesn't include a .lib, only dlls and source.
« Last Edit: March 04, 2010, 03:44:02 PM by Gogon78 »

Offline delta224

  • Dev Team
  • *****
  • Posts: 577
Re: getting unstuck
« Reply #28 on: March 04, 2010, 03:57:17 PM »

Offline Gogon78

  • Newbie
  • *
  • Posts: 3
Re: getting unstuck
« Reply #29 on: March 04, 2010, 04:05:58 PM »
Thanks a lot! I just tried using that, but still the same game-startup crash with it :-(
Any idea why that might be happening now? A few of the dependencies have updated versions since the dependency.txt was written, and didn't have older versions available, maybe it's because of that and we need a complete dependency pack?

EDIT:  I solved the problem. It was crashing because I was trying to host the compiled exe in an existing WM folder. When I used it with the provided resource folder, it started working.   :)
« Last Edit: March 04, 2010, 05:07:05 PM by Gogon78 »