My Assistant
![]() ![]() |
Jul 12 2004, 02:24 PM
Post
#51
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Ok, I made some farther improvement (in my opinion) of my XSLT design.
I made the armour display only the worn armour, and put the "not carried" armour in the regular not carried eqipment list. Also, the Armor section had the column with the weight of the items headed by "No.", so I chnaged that to "kg" and since the "Car" column became redundant, I switched it for the "Book" page number. Next step is to do the total final armour calculationss from what is worn. I'm not sure how to do that in xslt language, but I'll try to figure it out. Latest version is: http://oldforest.net/srchars/SR3-CharacterMG.xsl I still have heard nothing about how this design could be improved by anyone. Let us know, so we can make things better! -Mike G |
|
|
|
Jul 17 2004, 08:02 PM
Post
#52
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
LOL, not that anyone cares, but I have spend the morning and afternoon further refining my design. Besides Getting rid of some Redundant fields, I added "book.page" references to every item possible. Changes: 1) I separated the Weapons into "Carried" and "Not Carried" to be able to add "Qty" and "Book" fields to that grid. 2) Since we now have some more detailed Vehicle information in the XML (Thanks McMackie!), I added a better display for the Vehicles. 3) In my last update, I separated the "Worn" weapons and clothing from the "Not Carried". I figured out how to calculate out the Totaled armor rating to add at the bottom of the grid. Here is the code snipet if you guys want to use it for your own templates.
4) I added an "Encumbrance" Attribute to the Attributes section, so I could see how close the char is to his carried items weight limit. 5) I changed the "style.css" file that came with Michal K's orginal file. Several people didn't like the "box" grid style, so I changed it to have a more subtile grid style. So, let me know if any of these changes helped or hurt. Latest version is: http://oldforest.net/srchars/SR3-CharacterMG.xsl http://oldforest.net/srchars/style.css |
||
|
|
|||
Jul 17 2004, 10:19 PM
Post
#53
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Ok, I discovered one bug. If you didn't have at least 2 pieces of armor marked "carried=yes", then it would break tha calculations. I added some code to cover that problem and also if the rating was marked "-". Hopefully this covers all bases. Let me know of any other buggs, and you can still donwload from the links above. Here is the new code snippet if anyone is interested.
|
||
|
|
|||
Jul 23 2004, 01:48 AM
Post
#54
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Myself and my friends have been having a lot of trouble with NSRCG when it comes to tweaking a New character. It seems that sometimes when taking stuff away and adding other things, one gets often double charged or not charged at all. Sorry to McMackie that I can't provided any specific details about problems. I just know that when finished and we add up the things by hand, the Karma doesn't add up, or the newyen doesn't add up right.
Anyway, to combat our distrust, I have started making an XSLT that shows us the cost of all the different parts and does Sums for costs and Karma. Here is the XSLT: http://www.oldforest.net/srchars/NSRCG-FactChecker.xsl Some things to note: 1) Karma for the Attributes is tallied and summed just to right of the Attributes. 2) The Active Skills' Karma are tallied and summed in the 3rd section. 3) The Newyen costs for everything except Decks and Software is tallied and summed in the 2nd section called "Cost Counts". 4) THe NSRCG XML file does not contain costs for Decks or Softwares This is a work in Progress, and it is UGLY right now, but it might help you test NSRCG chars to make sure they really did turn out correct. |
|
|
|
Jul 23 2004, 01:58 AM
Post
#55
|
|||||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
In the process of making my Sums I discovered that XSLT is not designed to do complex things like this. :) Try summing cost * quantity when quantity is only given sometimes. :) Here is the Template I made to complete that task:
Well, this only begins the complexity of calculating Karma, which is recursive and has difference multipliers at any given level depending on Attribs of the char. Here are a few of the crazy Templates I made to get the Karma magic to happen. (Incidentally, Hats Off to McMackie; as complex as this stuff is, his prog is a miracle!)
|
||||
|
|
|||||
Nov 19 2004, 08:01 PM
Post
#56
|
|
|
Not So Great Dragon ![]() Group: Dumpshocked Posts: 59 Joined: 17-February 04 Member No.: 6,087 |
Does anyone know why the XML files do not display correctly in browsers other that IE? Specifically, the biography section displays the HTML formatting information in Netscape 7.2 and Mozilla 1.72. Any help would be appreciated.
|
|
|
|
Nov 19 2004, 08:56 PM
Post
#57
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
this is the xslt code snipet responsible for that:
You could try to get rid of the disable-output-escaping="yes" part, but that should be neccessary incase there is any non-XML HTML in that biography part. |
||
|
|
|||
Nov 20 2004, 04:32 PM
Post
#58
|
|
|
Not So Great Dragon ![]() Group: Dumpshocked Posts: 59 Joined: 17-February 04 Member No.: 6,087 |
Tried removing "disable-output-escaping='yes'" but the only thing that happened was that IE6 then displayed the HTML coding the same way as Netscape and Mozilla.
|
|
|
|
Nov 22 2004, 04:43 AM
Post
#59
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
What OS are you using for Netscape and Mozilla?
I checked in the xslt specification and the disable-output-escaping is appropriate, so I'm not sure what xml engine the Mozilla type browsers are using, but I would have expected them to be closer to correct than MS's, but I guess it is not as complete. |
|
|
|
Nov 24 2004, 10:24 PM
Post
#60
|
|
|
Not So Great Dragon ![]() Group: Dumpshocked Posts: 59 Joined: 17-February 04 Member No.: 6,087 |
I have two machines, a laptop running Windows 95 and a desktop running Windows 98.
I am using Windows 95 for Mozilla 1.7.2 and Windows 98 for Netscape 7.2, Mozilla 1.7.2 and IE6 SP1. Both Mozilla and Netscape exhibit the same behavior independent of OS. I am starting to wonder if it isn't something the Gecko rendering engine. Has anyone tried either of these programs in Win XP? |
|
|
|
Nov 26 2004, 01:46 PM
Post
#61
|
|
|
Target ![]() Group: Members Posts: 22 Joined: 16-August 02 From: Squalming the Frobnish Member No.: 3,121 |
I am using XP and have Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) as my browser. The Biography section does indeed post incorrectly here as others have said. It posts correctly in IE. on my machine.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 13th April 2022 - 02:29 PM |
Topps, Inc has sole ownership of the names, logo, artwork, marks, photographs, sounds, audio, video and/or any proprietary material used in connection with the game Shadowrun. Topps, Inc has granted permission to the Dumpshock Forums to use such names, logos, artwork, marks and/or any proprietary materials for promotional and informational purposes on its website but does not endorse, and is not affiliated with the Dumpshock Forums in any official capacity whatsoever.