Pink Petal Games

Game Discussion => General Discussion & Download => Topic started by: Midnight_Amratha on February 15, 2010, 07:13:21 AM

Title: getting unstuck
Post by: Midnight_Amratha on February 15, 2010, 07:13:21 AM
guys i've been looking in on the latest post on developers and it sounds as if you need to cut down on your workload.
try to get a voice conference and set up the goals you absolutely HAVE to get done and let the rest go on backburner. Also, you have a vast pool of eager gamers with skills in doing the nitty gritty stuff like making lists and things you need, i suggest you look for them and ask for help, they'll be overthrilled with giving a hand and proud to be able to say they helped out. the most important part in making a game is knowing when to delegate.
 
hope i'm not too pushy.
you're doing a great job that i know i wouldn't be able to as i don't have the skills but if you need something that is just timeconsuming and doesn't require skills i'm willing to do it.
Title: Re: getting unstuck
Post by: sgb on February 15, 2010, 02:12:59 PM
Definitely.  I've seen too many projects crash and burn because the devs got overly ambitious.  There's no rule saying you can't take back features that are proving too hard to code.

There's also no rule saying you can't just release 1.29.5 with small improvements and bugfixes that are stable, and put 1.30 on hold for a few months.  I'm sure everyone here agrees that we'd rather see 1.30 come late rather than come never.
Title: Re: getting unstuck
Post by: delta224 on February 15, 2010, 03:55:16 PM
My main issue is that what I have to do is very tedius and I just don't have the ambition to work on it.
Title: Re: getting unstuck
Post by: gguy123 on February 15, 2010, 05:24:00 PM
Oh... well... that was very blunt. If that's the case, then take a break. Focus on something else. Then come back, and get to it. 
I mean, that's what I do when I'm writing my book. It seems so tedious to throw everything together. But I hear it's even worse with programming, especially games. Just take a week off. Ignore it. Forget it exists. 


Maybe it helps. Maybe it doesn't. Frankly, there's no way to be sure. 
Title: Re: getting unstuck
Post by: fires_flair on February 16, 2010, 01:11:22 AM
burn out sucks. it really does. the best cure for it I've found is to take a break. think on it if you must but don't dwell on it. if there's some other part of the code that need to be worked on, and you can, do so. maybe just play the game for fun, that might inspire you, or just go read a book, visit some local sights.
I also second the have a meeting. it doesn't have to be vocal or anything, but I don't know IM, or some other group, just agree to go there at the same time and discuss it real time. you could also work out problems you have that way too, if finding the results wouldn't take to terribly wrong. have big 'jam' session (coding, instead of music ;) )
Title: Re: getting unstuck
Post by: zodiac44 on February 16, 2010, 02:15:24 PM
Well, if someone could get me access to the source code, I could spray some WD-40 on my coding skills and see what I can do to help.  I can't promise that I will write or fix so much as a single line of code, as it's been 7+ years since I wrote anything that wasn't a visual basic macro for Excel, and even then I wasn't very good at it.  I am currently unemployed, though, so aside from job hunting I really don't have anything to do with my time.  Having something, anything, to work on would be nice.
Title: Re: getting unstuck
Post by: delta224 on February 16, 2010, 04:02:12 PM
How good are you at c++
Title: Re: getting unstuck
Post by: freemantle on February 24, 2010, 01:08:10 PM
you know, the idea of distributing source code might be the ticket to getting more folks on this project, been a while since I did any coding, and I'm willing to bet there are a number of people on these forums that have some C++ experience.  After all, something like this isn't a paid job, and shouldn't feel like one to anyone involved, more of a labor of love.
Title: Re: getting unstuck
Post by: DocClox on February 24, 2010, 04:12:40 PM
There's a lot to be said for open sourcing the code and granting read only svn access to anyone who wants it. Still need to add permission to check code in, but people can still use svn to generate patch files if they have a fix or a feature they think is worth having.
Title: Re: getting unstuck
Post by: zodiac44 on February 25, 2010, 12:57:14 AM
I have no idea how good I am at c++ - it's been forever since I've used it.  I've been batting around the idea of reading Bruce Eckel's online book or seeing if I can locate my Deitel & Deitel textbook and brushing up my skills.
Title: Re: getting unstuck
Post by: delta224 on February 25, 2010, 08:57:27 AM
Just quickly glance over http://cplusplus.com (http://cplusplus.com) and you should be fine.  We don't roll any custom templates yet so that should help.
Title: Re: getting unstuck
Post by: zodiac44 on February 25, 2010, 02:23:55 PM
Do you guys have any suggestions for a decent (free) compiler for Windows?
Title: Re: getting unstuck
Post by: DocClox on February 25, 2010, 02:37:29 PM
Do you guys have any suggestions for a decent (free) compiler for Windows?

Well, if you can live with the command line, gcc is a good choice. That's what I use on Linux, but I built the windows builds using VS so that may not be entirely straight forward.

The Ogre project uses Code::Blocks which seems to be entirely competant. It's an IDE rather than a compiler, but it can work on top of VS express or CGG/MigGW

The other one that springs to mind is Eclipse. It's an industrial strength IDE, but it's designed as a java tool, and I'm not sure how much work there is in getting it to handle C++
Title: Re: getting unstuck
Post by: delta224 on February 25, 2010, 04:00:03 PM
There are two main compilers for windows gcc and msvc. msvc is the compiler that comes with visual studio and you can get the c++ part of visual studio for free of Microsoft's website, look for visual studio express c++ 2008 or 2010.  Also visual studio is one of the best IDEs out there for c++ if only for its debugging . IF you go with gcc get code::blocks, eclipse is just to slow to start.
Title: Re: getting unstuck
Post by: zodiac44 on February 26, 2010, 12:52:36 AM
I'll get the visual studio one and see just how rusty my code skills are.  I'm thinking rusty on the order of a '72 Dodge Charger sitting on blocks in a rednecks front yard, so I might need to get a tetanus booster first  >;o)
Title: Re: getting unstuck
Post by: Dagoth 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.
Title: Re: getting unstuck
Post by: LordJerle 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.
Title: Re: getting unstuck
Post by: delta224 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.
Title: Re: getting unstuck
Post by: DocClox 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 (http://pinkpetal.org/index.php?topic=268.msg5316#msg5316)
See here for the URLs of each:
http://pinkpetal.org/index.php?topic=191.0 (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?
Title: Re: getting unstuck
Post by: Dagoth on March 01, 2010, 04:01:33 PM
Fair enough, done.
Title: Re: getting unstuck
Post by: altereggo 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?
Title: Re: getting unstuck
Post by: Wispowill 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.
 
Title: Re: getting unstuck
Post by: Solo761 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.
Title: Re: getting unstuck
Post by: delta224 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.
Title: Re: getting unstuck
Post by: altereggo 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.
Title: Re: getting unstuck
Post by: altereggo 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.
Title: Re: getting unstuck
Post by: Dagoth 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.
Title: Re: getting unstuck
Post by: Gogon78 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.
Title: Re: getting unstuck
Post by: delta224 on March 04, 2010, 03:57:17 PM
Here you go. http://www.mediafire.com/?21tyyzt1itm
 (http://www.mediafire.com/?21tyyzt1itm)
Title: Re: getting unstuck
Post by: Gogon78 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.   :)
Title: Re: getting unstuck
Post by: necno on March 04, 2010, 06:11:12 PM
Its going to be interesting to see what others can do.
Title: Re: getting unstuck
Post by: altereggo on March 04, 2010, 08:53:25 PM
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.
The worst part is thinking "fuck, I'm almost certain some of those actually matter... But do I really care enough to go through 400 of them to find out for sure?"
There should be an option in Visual Express that says "stop reporting irrelevant bullshit and tell me what the real problems are..."
Title: Re: getting unstuck
Post by: GonDra on March 05, 2010, 10:50:59 AM
Well a lot of the ISO errors seem to be just a naming issue, so a search and replace could probably fix a lot of those, I didn't try though.
The stuff with the possible loss of data through the variable stuff could be pretty hefty though - and i don't know nearly enough of C++ or the source code of WM to be of any use (in any of those two things, i only did some basic coding in C# and Pascal).

Well at least this project has motivated myself to to get back at coding.
Excuse me now, I am going to start some C++ Tutorials now.
Title: Re: getting unstuck
Post by: delta224 on March 05, 2010, 11:24:27 AM
Well, if you know C#, c++ should not be too much of a jump since we have not used any custom templates yet.
Title: Re: getting unstuck
Post by: Wispowill on March 20, 2010, 01:52:50 AM
I glanced briefly at the code for this, but soon realized that I am totally lost where I'm supposed to put the SDL.h files referenced so that the compiler finds them. I tried putting in the main directory with the .cpp files, but the compiler still doesn't see them. And do I need more than JUST the .h files? I have the full source packages for everything mentioned in the dependency text file. I had tried putting the .c files in with the .cpp, but the compiler still thinks the SDLstuff.h is missing. Most of the help files for Visual C++ Express 2008 that were supposed to touch on this subject resulted in '404 page not found' errors on Microsoft's site.

And as a sidenote, is the SDL package just being used for resizing the pictures using the rotozoom? Or are there other uses for it in the main program?

I don't want to be a bother here if it's going to take too much time to explain.
Title: Re: getting unstuck
Post by: Solo761 on March 20, 2010, 06:05:18 AM
You don't add SDL to game source, if that were the case it would be already bundled with it. You need to tell Visual C++ where to find it. Try this

http://www.lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php
Title: Re: getting unstuck
Post by: Dagoth on March 20, 2010, 12:13:26 PM
And as a sidenote, is the SDL package just being used for resizing the pictures using the rotozoom? Or are there other uses for it in the main program?
It's used for more than that. I think pretty much all of the display code uses SDL.
Title: Re: getting unstuck
Post by: delta224 on March 20, 2010, 01:29:23 PM
Here is what SDL is used for: handleing the mouse events, the keyboard events, and the graphics.  SDL image is needed to load jpegs and pngs. And SDL gfx is for rotozoom.
Title: Re: getting unstuck
Post by: Gogon78 on March 27, 2010, 07:48:56 PM
You put the SDL stuff and other libs into convenient folders and then you must config in your VC preferences the path to them so it will find the files at compile and build time. So that goes for both the .h files and the .lib too.
Title: Re: getting unstuck
Post by: xorgroth on April 21, 2010, 08:19:46 PM
Well, I'm stuck after going through a bunch of missing SDL libs and I believe this is the final thing holding me back from building successfully. Unable to figure out why it is failing, though might be hitting me in the face and I am not realizing it. Also using VC 2008 Pro...

Code: [Select]
1>------ Build started: Project: Whore Master, Configuration: Debug Win32 ------
1>Embedding manifest...
1>The system cannot find the path specified.
1>Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.
1>Build log was saved at "file://c:\wm\BrothelMaster\Debug\BuildLog.htm"
1>Whore Master - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And the Buildlog.htm as well.

Code: [Select]
Build started: Project: Whore Master, Configuration: Debug|Win32

Command Lines
Creating temporary file "c:\wm\BrothelMaster\Debug\RSP00001425082328.rsp" with contents
[
/outputresource:"..\Debug\Whore Master.exe;#1" /manifest

".\Debug\Whore Master.exe.intermediate.manifest"
]
Creating command line "mt.exe @c:\wm\BrothelMaster\Debug\RSP00001425082328.rsp /nologo"
Creating temporary file "c:\wm\BrothelMaster\Debug\BAT00001525082328.bat" with contents
[
@echo Manifest resource last updated at %TIME% on %DATE% > .\Debug\mt.dep
]
Creating command line "c:\wm\BrothelMaster\Debug\BAT00001525082328.bat"

Output Window
Embedding manifest...
The system cannot find the path specified.
Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.

Results
Build log was saved at "file://c:\wm\BrothelMaster\Debug\BuildLog.htm"
Whore Master - 1 error(s), 0 warning(s)

Thanks,
Xorg

edit: Actually moved the mt.dep from another Debug folder and it went through just fine but looks like if I try to build as a release it doesn't create it at all or see a moved file.

**edit: Removed manifest embedding and now its finally happy.
Title: Re: getting unstuck
Post by: DocClox on April 22, 2010, 10:14:13 AM
Well done. Sorry not to be much help, but I don't know much about visual studio at all.
Title: Re: getting unstuck
Post by: Popuri on October 30, 2011, 12:55:36 AM
Hey, not sure if this would be the right topic for this, but been having trouble getting the game to compile from source.  Downloaded the latest trunk from SVN.

When I go to compile (using visual studio 2010) I get this error:

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: The command ""SubWCRev.exe" "C:\Users\****\Desktop\trunk-r643\trunk\BrothelMaster\." "C:\Users\****\Desktop\trunk-r643\trunk\BrothelMaster\Revision.wcrev" "C:\Users\****\Desktop\trunk-r643\trunk\BrothelMaster\Revision.h" -f
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: :VCEnd" exited with code 10.

Any help is appreciated.
Title: Re: getting unstuck
Post by: dqhx on October 30, 2011, 06:48:17 AM
The project expects you to compile straight from the checked out version from the SVN (the one with all the .svn folders, etc..). It calls an external exe file ("SubWCRev.exe") during the build process to add the SVN build number to the source files.

Personally i don't like working directly on the SVN version and you can avoid that but in that case you need to disable the pre-build step in the project options (set Use in Build to No), and then copy "Revision.wcrev" to "Revision.h" manually and edit it so svn_revision is set to whatever version you'd like to be displayed ("1.30.643" for example).
Title: Re: getting unstuck
Post by: ShikinamiFan91 on October 30, 2011, 01:53:38 PM
Hey, not sure if this would be the right topic for this, but been having trouble getting the game to compile from source.  Downloaded the latest trunk from SVN.

When I go to compile (using visual studio 2010) I get this error:

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: The command ""SubWCRev.exe" "C:\Users\****\Desktop\trunk-r643\trunk\BrothelMaster\." "C:\Users\****\Desktop\trunk-r643\trunk\BrothelMaster\Revision.wcrev" "C:\Users\****\Desktop\trunk-r643\trunk\BrothelMaster\Revision.h" -f
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: :VCEnd" exited with code 10.

Any help is appreciated.
This thread was a developer thread for working through some of their problems as they were working on developing the game.  Trouble shooting should go here: http://pinkpetal.org/index.php?board=4.0
Title: Re: getting unstuck
Post by: LordJerle on October 30, 2011, 02:12:10 PM
*pops head in* Hi guys, been awhile :P
I might suggest, as far as development interfaces go, Dev C++

http://bloodshed.net/
It's free, and supports multiple compilers, and it's not a half bad little program.  It includes such features as error checking, importing of Visual Studio project files, and compiler selection.

*runs off before anybody notices he's gone*
Title: Re: getting unstuck
Post by: sentza on January 02, 2012, 06:17:45 PM
Hello,
 
 I like your game and i am a monkey coder (Java and Php, lower in C++ but this game sucks!!). So I get the source code and i try to implement group fucks in dungeon.
 
 Let's see the code :

 in cGirls.cpp i add a method which calcul pregnancy for a group, the player has 25% of luck to be the father :
 bool sGirl::calc_group_pregnancy(cPlayer *player, bool good, double factor)

in cGameScript.cpp i add a method to update group skill and call the calc_group_pregnancy method
sScript* cGameScript::Script_GroupSexTarget(sScript* Script)

 For the script, i add the corresponding action for group sex in DefaultInteractDungeon.script. The girl can refuse if you tell him. If you force she lose happy stats... as other forced actions

I add lesbian interaction too. I will update the file attached when i finish to update the interaction group and lesbian in the  house.

I see in the trunk that there is bug which are not in the last release. For exemple the day work when i change it for a girl is not updated. In the xml a column is commented, i change the value in code. The trunk is up to date?

So i modify the file :
Code: [Select]
ss << g_Brothels.m_JobManager.JobName[(int)selected_girl->m_DayJob];
 //SetSelectedItemColumnText(girllist_id, GSelection, ss.str(), 6);
SetSelectedItemColumnText(girllist_id, GSelection, ss.str(), 5);
ss.str("");
ss << g_Brothels.m_JobManager.JobName[(int)selected_girl->m_NightJob];
 //SetSelectedItemColumnText(girllist_id, GSelection, ss.str(), 7);
SetSelectedItemColumnText(girllist_id, GSelection, ss.str(), 6);
Title: Re: getting unstuck
Post by: hentai_geek on December 30, 2015, 04:18:37 PM
*pops head in* Hi guys, been awhile :P
I might suggest, as far as development interfaces go, Dev C++

http://bloodshed.net/ (http://bloodshed.net/)
It's free, and supports multiple compilers, and it's not a half bad little program.  It includes such features as error checking, importing of Visual Studio project files, and compiler selection.

*runs off before anybody notices he's gone*
Yeah, but I haven't used C++ in years, and project set-up and configuration nightmare is already a pain in the ass in general.  I always found myself confused with trying to import pre-existing Visual Studio projects in the past. 


Like, right now, I am also experiencing the MSB3073 error too.  But, I have not changed any code.