My Assistant
![]() ![]() |
Feb 13 2004, 05:08 AM
Post
#26
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Ok, so I added Collapsable DIVs to my XSL transform(or I should say to my perversion of MK's XSL). Now there is an extra thing like the Page-Break things that will collapse and uncollapse each section.
I'm not sure I like the way it looks, so I'll keep working on the look. but until then, here's my first attempt: http://oldforest.net/srchars/SR3-CharacterMG.xsl Tell me what you guys think. -Mike |
|
|
|
Feb 13 2004, 05:47 AM
Post
#27
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Ok, so now the PageBreak and Show-Hide Section buttons share the same line.
If you guys will notice, there is a line at the top that tells the Chracter's name and some small print about when it was last modified. Let's call that line the Title Line. Do you think that one of those should be hidden at the PageBreak parts, so that when you say "Page-Break: YES", it will expose a small page header line at teh top of the next page? Or should we leave it as is, and save the one line's page real estate? Edit: Sorry, if you guys need to see a few samples, I have 3 you can look at: Preacher - Bear Shaman Gordon Schumway - Dwarven Decker Crunch - Wearbear Physad |
|
|
|
Feb 13 2004, 06:14 AM
Post
#28
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Breaker Breaker. All you good buddies got your ears on out there?
The MG XSL that I put out seems to be working appropriately, and the little bar that allows you to show-hide each section is not printing, but there is still a space on the page where that little bar is. DOes anyone know where I went wrong? See my examples above. |
|
|
|
Feb 13 2004, 06:20 AM
Post
#29
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Ok, perhaps I spoke too soon.... I figured it out I changed the CSS file that tags along with these transforms to have a "Display:none;" in this spot:
That fixed it up. Speaking of that CSS file... I was thinking of just incorporating that directly into the XSL file, so I would not have 2 files to keep up with. What do you guys think? What are the ramifications of that? |
||
|
|
|||
Feb 13 2004, 09:18 PM
Post
#30
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
damn! I am out of it for a week or two and someone jumps in here with so much for me to take in...
this is Mike Rowlett, I'll have to download this tonight and see what I like and don't like from what you did. this IS the forum to talk about ideas that need to be done/want to get done with the XML/XSL stuff. I am happy to offer webspace to host more XSls to get the choice in the xml print pick list it needs to be in the xml subdirectory of the NSCRG directory. let me look at the rest and then I'll have more comments. -Mike R. (glad to see someone else excited about it) P.S. I want to incorporate a java file loader of some kind so I can load up all the NPCs in it and look at the xml pages as I need them, just like a binder in the real world. |
|
|
|
Feb 14 2004, 11:33 PM
Post
#31
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
I don't know if it might help anyone, but I wrote a simple little PHP application (two pages) that list the XSL and XML files in a directory, and lets you select one of each and it will display the XML you chose transformed by the XSL you chose.
The Transform should have been easy, but the XSLT PHP functions are disabled on my provider, so I had to do some manual manipulation to get it to work. If you want the PHP code, ask me, if you want to see it on my page, then take a look over HERE. I'm still looking forward to someone letting me know weak points and strong points in my modification of MK's XSL design (check it out on my page, it's the SR3-CharacterMG.xsl file). Don't be afraid to be critical, I can roll with the punches. Come one guys, we'll make a better design if we work together! -Mike G |
|
|
|
Feb 18 2004, 06:23 AM
Post
#32
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
NIce, finally got a chance to look at those, they are very nice...
I'll need top run some of my other sample guys through it to see if I can find andything that breaks. I am trying to make mine print out a little nicer for my PCs as well as finguring out a very abbreviated format for an NPC cheat sheet... but that looks nice. -Mike R. |
|
|
|
Feb 18 2004, 06:26 AM
Post
#33
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
I think I like my weapons section a little better...
but that may just be because I don't like table borderes, they get cluttered on printouts. -Mike R. |
|
|
|
Feb 18 2004, 02:56 PM
Post
#34
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
I'm not sure I like the way the borders are done either, but I was just using the supplied CSS file. You could just change that in the CSS to your preferrence.
Heh. I've been playing around with putting each of these tables in their own DIVs so that you can drag them around and maximize your layout. It's pretty hard, I don't know if I'll get it all working. |
|
|
|
Feb 18 2004, 03:51 PM
Post
#35
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
sounds like a neat Idea though... i think I am gona focus on a small footprint NPC page.
-Mike R. |
|
|
|
Feb 18 2004, 04:48 PM
Post
#36
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
That's a good idea, you could put more than one char in the XML file, and make something that would show up 3 or 4 per page printed. Just basic info, like Spells listed, but no other info on those spells.
Do you actually use NSRCG for NPCs? |
|
|
|
Feb 18 2004, 05:11 PM
Post
#37
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
yepo, takes me maybe 5 minutes to throw one together, so I build generics...
I also beta the shadowrun tracker mcM is working on, so I had incentive there too.... I only gotta make three gangers than i can use them over and over... i prolly have close to 100 npcs built with nscrg. also usefull when a pc kacks it. -mike r. (king of onehanded typeing) |
|
|
|
Feb 18 2004, 06:52 PM
Post
#38
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Are you the Drummer for Def Leopard??? Sounds like we need a tool to pick a group of pre-generated generic NPC, and produce and XML file with all of them in it for this new XSL you are making for compact Char sheets. Then the GM could just pick 5 generic Gangers and print out a sheet "5 Gangers at Corner" to have with his materials at game time. |
||
|
|
|||
Feb 18 2004, 06:55 PM
Post
#39
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
yes that is it exactly!
I've been thinking of zipping up all my npcs and publishing them anyway, this ould give me an excuse! no, I don't drum very well... but I am learning viola, to add to my brass playing abilites and my garage band level of Bass guitar... just trying to eat and type on a computer to my left while I work on the one to my right with a mouse... (I have 6 comps in my cubicle) -Mike R. |
|
|
|
Feb 19 2004, 05:11 PM
Post
#40
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
here is a preliminary of the XSL for NPC printouts... some comments, first, the spacing is done with the old white XX trick, I know I know ther are better ways to do this, but I wanted to get something out there that was a start so I can get commentary.
get it at http://users3.ev1.net/~skywise/npc-new.xsl comments welcome, mostly on layout at this point rather than execution (working on that now) how did that PHP code work, I have never used PHP before but that is close to what I want to do with this, only more than one Char per page. -mike R edit: can't type file name arrgh This post has been edited by Fahr: Feb 19 2004, 05:12 PM |
|
|
|
Feb 19 2004, 06:57 PM
Post
#41
|
|||||
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
This is at the top of the XML file generated by NSRCG:
As you can see, it has a tag "?xml-stylesheet" that tells your browser which XSL file to use to transform it. Since my WebHost doesn't give me access to the PHP XSLT functions (I guess because of potential to overload the processor), I made use of that stylesheet tag and just change the XSL it is refering to before sending the resultant XML to thet browser. What we need for your multiple character display is one XML file built from several chosen characters. A resultant XML that looks something like this:
Then at that point, you only have to make sure you have an <xsl:for-each/> to repeat the XSL for all the characters listed. The PHP to build that XML from checking off any number of chars should not be that hard. However, if you checked off lots of chars, it could probably get quite big. Does anyone with more XML/XSL experience know if you could do the for-each without having to put the extra <SR3Chars> tag around the whole set? I guess I could just experiment. |
||||
|
|
|||||
Feb 19 2004, 07:07 PM
Post
#42
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
yeah, I just built one that will handle that in a similar way, <GLOBAL> tag instead of sr3chars... but it works, problem is that requires me to cut and paste... I am wondering if frames might be the answer, but probably not...
I could always write a small prog. to move the files together with the outside tag, a chooser so to speak... that might be the easiest answer for my use... -Mike R. |
|
|
|
Feb 19 2004, 07:32 PM
Post
#43
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Well, based on previous conversations, I think it would be cool for you to have a chooser for chars anyway. Wether you choose that as a web-based application, perhaps in PHP, or something compiled for Windows.
|
|
|
|
Mar 7 2004, 03:06 AM
Post
#44
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 555 Joined: 11-August 03 Member No.: 5,408 |
Is there an easy way to display a particular attribute from a characters xml file? Im wondering this mostly because I want the character sheet to start the attribute names with capital letters, and I can't figure how to get it to work. It's a very minor detail, but I thought I'd bring it up.
|
|
|
|
Mar 8 2004, 03:27 PM
Post
#45
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 239 Joined: 10-February 04 Member No.: 6,068 |
Do you mean in a Transform (XSLT), if so then it's easy to get the data for a particular attribute. You should be able to look at any our examples, if you care to be more specific about which attribute you are looking for, I will be more specific with the code.
I don't understand what you are talking about with the capital letters, though. Maybe I misunderstand you. |
|
|
|
Mar 8 2004, 05:16 PM
Post
#46
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 555 Joined: 11-August 03 Member No.: 5,408 |
So th XML stores the chracters attributes (str, bod, quick, etc) in a an attribute tag, which has subfields for the name, the unmodified, the modefied, etc. The problem I am having is testing to see the name of the attribute. The reason I'd like to be able to do this is because the XML stores the name of the attribute in all lowercase like this:
<name>body</name> and I want to display it like this : Body The problem with is is that to do this, I think I need to test the name, and I dont know how to test for the value of something. I can display the value, but i dont know how to say if (value of name == body) do (something) Hopefully thats a better discription of my problem |
|
|
|
Mar 8 2004, 05:53 PM
Post
#47
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 320 Joined: 13-August 02 From: Austin, Republic of Texas (not CAS) Member No.: 3,094 |
Ok.
in the XLST there is a section that deals with the attributes, the XSL tag <xsl:value-of select="attribute/name"> inside a <xsl:for-each select="SR3char/attributes"> like <xsl:for-each select="SR3char/attributes"> <xsl:value-of select="attribute/name"/> </xsl:for-each> would give you output like body quickness ... if you are trying to capitalize them than you need to approachit differently: <xsl:for-each select="SR3char/attributes/attribute[name='body']"> Body = <xsl:value-of select="total"/><br/> </xsl:for-each> would give you Body = 4 but you would need one set for each attribute. The xml output is not capitalized. -Mike R. |
|
|
|
Mar 8 2004, 06:14 PM
Post
#48
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 243 Joined: 26-February 02 Member No.: 774 |
I agree but am having issues with how to integrate into the program. Cred is cred is basically how SR3 default is handled. Do you automatically get a credstick on chargen? What type is it? Plat, gold, black, etc... You also have an associated cost with a type of credstick. Gold costs so much etc... What happens when you put more than a credstick can handle on it? There are so many questions with answers (maybe SOTA handles it) that I didn't want to get into... :D |
||
|
|
|||
Mar 8 2004, 06:15 PM
Post
#49
|
|||
|
Moving Target ![]() ![]() Group: Members Posts: 243 Joined: 26-February 02 Member No.: 774 |
Sure, send them in and I'll post. I'll even include them in the distribution! :D |
||
|
|
|||
Mar 9 2004, 05:04 AM
Post
#50
|
|
|
Moving Target ![]() ![]() Group: Members Posts: 555 Joined: 11-August 03 Member No.: 5,408 |
Thanks Mike, didnt know i could do that, you are a godsend for the obsesive compulsive.
|
|
|
|
![]() ![]() |
|
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.