Help - Search - Members - Calendar
Full Version: SR4A Conversion Webpage
Dumpshock Forums > Discussion > Community Projects
Freejack
I whipped this up last week for a few things including helping my group convert their characters for the SR4A changes. We don't qualities from the expansions so the ones in the list are only SR4A. I'm working on them right now so they may be added shortly.

http://www.shadowrun.us/sr4/calc.php

Currently too the generation limits are in place (to an extent anyway) so it might not help if you have more advanced characters. Give it a try as it might fit what you need.

I'm open to corrections and suggested changes. It's not meant to be a character generation script so no equipment purchases or cyber mods to stats are accounted for. Just Build Points and Karma.

It's a smaller php script (about 68k) that creates the javascript/html page (about 230k after page creation). All the duplicate stuff is created via the php portion so if extra lines are needed, just let me know and I can just increment the main variable(s).

I ran through the example characters in SR4A and came up with:

CODE
Title                     BP/Kar   Attributes  Qualities  Active Skills
Bounty Hunter:           400/714    200/390       0/0       126/148
Combat Mage:             400/618    230/345     +20/+40     124/149
Covert Ops Specialist:   400/611    220/335      10/20      144/162
Drone Rigger:            400/664    180/270     +15/+30     152/197
Enforcer:                400/760    190/430     +10/+20     160/200
Face:                    400/666    220/355      +5/+10     130/168
Gunslinger Adept:        400/649    250/405      +5/+10     112/136
Hacker:                  400/673    200/305       0/0       138/185
Occult Investigator:     400/580    230/325     +10/+20     146/166
Radical Eco-Shaman:      400/642    230/360     +15/+30     130/167
Smuggler:                400/634    210/320     +30/+60     156/192
Sprawl Ganger:           400/669    220/385       0/0       144/176
Street Samurai:          400/621    200/300       0/0       150/199
Street Shaman:           400/614    225/310      +5/+10     120/141
Technomancer:            400/688    230/350     +10/+20     134/161
Weapon Specialist:       400/626    180/250      10/20      142/176


Carl
Octopiii
Very nice!

One point - For Karma Gen, it charges you Karma = to BP costs for Metatype. Karmagen allows Metatypes for free.
Freejack
QUOTE (Octopiii @ Apr 25 2009, 08:16 PM) *
Very nice!


Thanks. I updated the Qualities to include all the ones from Runner's Companion and the few that were missed (AI and the Martial Arts one).

QUOTE
One point - For Karma Gen, it charges you Karma = to BP costs for Metatype. Karmagen allows Metatypes for free.


Build Point Conversion is BP x 2, at least for the PDF I have. Page 42 under Build Point Conversions.

Generation is zero per Step 1 "there is no associated cost for metatype or race in Karma-based character generation"

So selecting the "Conversion" radio button should double the BP cost and selecting "Generation" should set Karma cost to zero.

Unless I'm missing something here smile.gif

Carl
Octopiii
The first time I made a character (a dwarf), I selected "generation" and it listed 25 under the BP column and 25 under the Karma column. It's changed, now!
Freejack
You must have caught it when I just posted the message above smile.gif I realized there was that error and I immediately fixed it along with a few other minor bits. Then all the Qualities updated.

Carl
Muspellsheimr
Not bad. It does not allow you to possess a skill at Rating 7 - even with Aptitude.

It would also be appreciated if you allow a toggle for a few 'standard' sets of house rules, particularly my Karma Generation rules (calculate attribute costs before racial modifiers, allow [Intuition+Logic] x 10 free Karma worth of Knowledge skills, allow Charisma x 3 free Karma worth of Contacts, & Contacts cost Connection x Loyalty Karma).


If you do so, I also suggest Frank Trollman's alternate Build Point rules.


I do like that character-generation limits are not enforced - I advise keeping it this way (mark in red when limits are exceeded, but allow it).
Freejack
Hmm, I like the idea about marking things in red that exceed limits and I forgot about Aptitude. I'll make more adjustments as I'm going along. I'm also working on changing the first run of one large function into individual functions to speed up the processing, but it's not a horrible hit at the moment.

I'll keep your suggestion about house rules in mind. It won't be that hard to add it in as an option I'm sure.

Thanks for the feedback.

Carl
Muspellsheimr
Is there any chance you are willing to give me the code for this, so I could make a few house changes for my groups use? Mostly changing the costs of Qualities and races, & adding and removing a few qualities & skills
Freejack
The php script just replicates the javascript and html code. So ultimately the page _is_ the code smile.gif I can make the php script available if you want it too.

Carl
Muspellsheimr
Not needed - I should be able to work off the javascript code. Thanks.



Edit: The code seems excessively bloated, with identical arrays repeating a dozen times. Is this due to the PhP <-> JavaScript conversion?

I am not familiar with PhP, but have worked with PERL, & I would have written an array once, then referenced to it wherever needed, instead of repeating it numerous times...
Freejack
No you're right. It is pretty bloated. I was in a hurry for a different reason (game this past Sunday). If this were a stand-alone program like C, I would certainly have used arrays but I'm a lot more familiar with C. Same with any other stand-alone tool (like perl). I've been using PHP for a few years and I think I have the hang of it for the simple things that I do (sysadmin type stuff and mysql). I'm just starting to learn Javascript and there are some gotcha's involved that I wouldn't encounter in C (such as it being pretty time consuming to debug; no Warning: or Error: during compile smile.gif ).

In this case I wanted to use arrays but didn't know how to set up array variables in HTML so I could use them in a function. Setting bodmod[0] and passing 0 to showchar(0) wasn't working and as I said, I was in a crunch for this.

I've been searching on how to do arrays in Javascript but without much luck. Today I did a search and included HTML and found what looks like the answer. I'll be mucking with that tonight to get that going but it may take a few days to get the code converted to what it should look like.

I also want each of the sections to call its own function rather than go through showChar() each time for efficiency. I get to deal with global variables in doing that. I have started that part and have the first separate function working.

That's how I learn something new. I started back in 1980 learning Basic by writing a Car Wars vehicle generation program and D&D character program on a Radio Shack Color Computer. From there I've gone through a few versions of Basic, a couple of vendors implementation of C, a couple of Dos windowing packages (Mike Smedley's CXL was the best for what I did smile.gif ), converting my existing programs and creating new ones. This is just another language and program in a long line of such things. Doing it helps me learn Javascript in this case and character generation rules.

Sorry for all the info. I'll be off to make the program more efficient. It does work though, even if it is a _bit_ bloated smile.gif

Carl
Octopiii
After having played around with it for a bit, I have some minor points:

Switching from skill groups to individual skills (and vice versa) requires you to take the value down to 0 and then back up rather than recalculate.

Could use more slots for Contacts and Skills. Perhaps have these sections expandable?

Does not allow you to advance past racial max on attributes or skills despite choosing relevant qualities.

Qualities are a bit of a mess to scroll through. You have them grouped by positive/negative, which is nice, but it's still a long list. Separate by book, perhaps?

You have a pretty neat application here! I would love if it became an online chargen - I hate downloading things from strange web pages smile.gif
Freejack
Thanks for the feedback. I can expand the slots of course. I'm doing some optimizing right now but I'm planning on working more with the chargen to get it better smile.gif

Carl
Freejack
QUOTE (Octopiii @ May 1 2009, 01:02 PM) *
After having played around with it for a bit, I have some minor points:

Switching from skill groups to individual skills (and vice versa) requires you to take the value down to 0 and then back up rather than recalculate.


Still working on how I want to do this.

QUOTE
Could use more slots for Contacts and Skills. Perhaps have these sections expandable?


Since I'm using a php array to build the javascript bits, I just upped the number for the sections so there are more

QUOTE
Does not allow you to advance past racial max on attributes or skills despite choosing relevant qualities.


Took out the limits. The min/max changes to red when you've exceeded the racial max.

QUOTE
Qualities are a bit of a mess to scroll through. You have them grouped by positive/negative, which is nice, but it's still a long list. Separate by book, perhaps?


They're already identified by book so I just needed to add in the code to break them up. I've started but it's not quite there yet.

QUOTE
You have a pretty neat application here! I would love if it became an online chargen - I hate downloading things from strange web pages smile.gif


We're in the middle of moving so I'm working on it when I get a few minutes here and there.

Thanks again for the ideas.

Carl
Octopiii
I tested out your program again. Notes:

When I took an attribute past the racial max, the min/max in parenthesis flashed red briefly and went to black.

The check boxes for qualities don't work. I checked them all, and got only SR4 qualities. I unchecked SR4, with the rest checked, and it remained only SR4 qualities.
Freejack
Hmm, I'll have to check. It should have stayed red. The checkboxes were just added to show how I'm going to implement the selection. I have to study up on how to add options in Javascript. I have the section, it's just getting it all together and pushed out to the server.

We're right in the middle of moving though so it'll be a few days before I can get back to it.

Carl
Kerenshara
Ok, since I plan to buy the "all three" on the next paycheck and don't have the PDF to go from yet on SR4A, what actually changed in terms of character generation?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Dumpshock Forums © 2001-2012