This is a bit of a proof of principle.
It strips out all of the character classes and replaces them with a single interface screen (you can still select your class, but it is purely cosmetic,) where you buy an initial inventory, skills and attributes. I added a few mutations as well on a lark.
The prices for items are mostly the gold costs from shopping.cc (with a few modifications,) the prices for everything else are set so that you can generate a wizard, fighter or priest more or less as they exist in the base game (I think this makes religion too expensive.)
Obviously this means that custom characters will be, all else being equal, somewhat more powerful as they'd be min-maxed to one degree or another, so purists might prefer to lower the available number of points.
Feed back is appreciated; although this patch is perfectly playable this is more meant to stimulate discussion.
A diff is attached - I put all the changes in newgame.cc although some of them should probably have gone elsewhere.
Logged In: NO
What version is this to? I can't seem to get patch to like it.
Logged In: YES
user_id=354235
Originator: YES
Sorry - this is for stable release 0.3.4.
Should I just patch the version of newgame.cc that it produces instead of the diff? I'm not sure what changes have been made in the dev version.
Logged In: YES
user_id=354235
Originator: YES
File Added: SH_CC_patch_diff2.txt
Logged In: NO
On windows this throws a metric ton of compiler warnings then aborts.
The first line repeats quite several times prior to this.
newgame.cc:445: warning: deprecated conversion from string constant to `char*'
newgame.cc:445: warning: deprecated conversion from string constant to `char*'
newgame.cc:445: warning: deprecated conversion from string constant to `char*'
newgame.cc:445: warning: deprecated conversion from string constant to `char*'
newgame.cc:2316: warning: 'void give_basic_spells(job_type)' defined but not use
d
newgame.cc:2056: warning: 'void give_last_paycheck(job_type)' defined but not us
ed
newgame.cc:4024: warning: 'bool give_items_skills()' defined but not used
newgame.cc:876: warning: 'void assign_remaining_stats(int)' defined but not used
mingw32-make[1]: *** [rel/newgame.o] Error 1
mingw32-make[1]: Leaving directory `C:/Documents and Settings/brett/Desktop/ston
e_soup-0.3.4-tile-src/stone_soup-0.3.4-tile-src/source'
mingw32-make: *** [wizard] Error 2
Logged In: YES
user_id=354235
Originator: YES
Hoookay. Well, that's a pretty finnicky compiler. It works under cygwin.
I added "const" to all those string declarations, which at least shuts up cygwin g++. Makefile is attached. The unusued declaration warnings remain; if the compiler dies on those, I'm not sure what to tell you.
File Added: SH_CC_patch_diff3.txt
Logged In: NO
I give up. Mingw hates your patch, and cygwin hates me.
Logged In: NO
I really wish I could get this to work, it's such an interesting idea.
Logged In: YES
user_id=354235
Originator: YES
I'm going to port the patch into trunk, maybe that'll mysteriously make it work, who knows?
You'll still get random bonuses to your stats - but you get to see the die roll before assigning your stats (and you'll get 1,250 points instead of 1500.) Instead of replacing the existing classes, there will be an extra class, the Stranger, who goes to the customization screen.
With a few I/O improvements (and the mysterious mingw bug squashed - I can't fix it, I don't use mingw) that'd be worth considering for trunk, I think.
Logged In: NO
Haven't tried this, but it is an awesome idea. Versatility, the ability to start with a god without being restricted in class... cool.
Logged In: NO
any chance of seeing this compatible with 0.4?
OK, I think I got this working against trunk r8900, if anyone wants to give it a try. I tried not to make any changes to the patch itself, though. As it stands, it seems very imbalanced. Although I can't be completely sure if that isn't due to my modifications. Any custom character is bound to be almost strictly better than any class. You can easily create fighter-equivalents with better skills and stats, wearing plate mail and wielding a broad axe with a large shield or casters with two starting books, items for all armour slots and no drawbacks as a result of those choices. The imbalance and the clunky interface are a bit of a pity as the idea does have some merit IMHO.
Unfortunately, I don't seem to be able to attach files to items I haven't created, so I put it on http://pastebin.com/f4345c1eb instead.