Official Transcendence Wiki

Discuss the community, including forums, xelerus, wiki, chat, and trac.
Cidewalk
Anarchist
Anarchist
Posts: 5
Joined: Tue Apr 14, 2009 1:39 am
Location: Minnesota, USA

First off, it's been a good 3 years since I've done much with XML on anything above a "tinkering" level. So while I'm confident that I will be able to make this work with xslt, it's not going to be fast at first while I rediscover how to do this. (Plus, xslt 2.0 has come out, so I'm briefly looking to see if it makes anything significantly easier.)

As for your real question, I can't say I'm 100% sure what you mean. My thought was just to define an output type for each possible data field (such as name, level, value, mass) and just have it output it into dokuwiki format. Possibly as it's own text document. If any of those fields doesn't exist I'll just have it ignore it, which is not terribly difficult, no. I'm not sure that I'd need different templates for the different ItemTypes. Now, "proper" XML probably would want a different template for them all, but XML gurus are kinda hard headed.

If there are any fields that are entirely unnecessary, I'll probably write another script to go through and edit those out (assuming I didn't just have them set to be ignored in the first place.)

I'm paging through my manuals and workbooks daily, I'll update you when I make any breathtaking progress.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Cidewalk wrote:As for your real question, I can't say I'm 100% sure what you mean.
Can't say i blame you. On reading through my post i'm not sure i would have understood it myself. To make it a bit clearer i put up a pastie with examples of the ItemTypes that present the problem.

http://paste.pocoo.org/show/113991/

As you can see, most itemtypes share some attributes and elements, but have to be categorized differently based on either attributes (eg. virtual="true") or sub-tags (eg. presence of <Weapon> tag).

I guess my question was how easy this is to handle in xslt. But basically i just wanted to share the problem :)

I hope that made more sense...

.]
Cidewalk
Anarchist
Anarchist
Posts: 5
Joined: Tue Apr 14, 2009 1:39 am
Location: Minnesota, USA

Maybe I'm still not getting what you mean, but I think you explained it better there and I think I did. I suppose the problem with my understanding may be that what you're asking is so inherantly easy in xslt that I don't see why it would ever be a problem. Or perhaps I don't know enough about transcendence to think up the odd possibilities. I only beat the game once, so I surely haven't seen everything there is to see yet.

Basically I'll tell it "anytime you see a Name field, this is what you do with it" and it won't matter where or why it sees a name category. The "this is what you do with it" will be directly formatting it for use in dokuwiki. Ideally the output is easily uploadable.

As for the presence of a "weapon" tag or "virtual" tag, that will somewhat be resolved by how it gets posted on the wiki, so I'll probably instruct it to discard that data. If it's posted under "weapons" it's obviously a weapon. The virtual items...there'd probably have to be a page on the wiki about alien weapons or something and so we'd just put all the names on there.

Also, all the shields are coming from one file, all the weapons from another, etc. So I'll just output things to different folders or files and then for the upload script (or person) everything in that folder will just coorespond to what's on the wiki.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Cidewalk wrote:I suppose the problem with my understanding may be that what you're asking is so inherantly easy in xslt
Sounds reasonable. I will stop obsessing over this issue, and just see what happens :)
Cidewalk wrote:I only beat the game once, so I surely haven't seen everything there is to see yet.
I personally never beat the game, only spent alot of time modding it. Most of my experience with Transcendence comes from looking at the xml/script.
Cidewalk wrote:The virtual items...there'd probably have to be a page on the wiki about alien weapons or something and so we'd just put all the names on there.
My point about virtual items was that they should actually never appear on the wiki, being virtual and all.
At least that is my opinion on them. They are "placeholder" items, and never actually appear ingame.
Cidewalk wrote:Also, all the shields are coming from one file, all the weapons from another, etc.
IMHO this is an unhealthy assumption. There is no guarantee that it is like that now, or that it will stay like that in future versions. IIRC there is the odd armor and shield defined outside of StdArmor/StdShields. Even if there isn't i would still say it's not the right way of determining the category of the item. One thing that would be really nice about having script/xslt do the work of filling in the wiki, is that it can be used for future versions.

OK, i will stop being annoying about this now, and go do something helpful. I'll upload an example template of the dokuwiki
files as they should be output from the script.

Let me know if there is anything else you need a hand with :)

.]
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

OK, it actually turned out to be easier than anticipated. Each page in dokuwiki is just a textfile containing the wiki markup.
The title of the page is taken from the filename, and there is no header or footer included. Namespaces are provided by folders.

Couldn't be easier.

.]
User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5401
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

How do you edit pages? Or have you just taken an abnormally long time to notice my account there? (several pages have been edited since the date I've joined, yet I still can't seem to edit anything)
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB
Workstations & Render machines: Threadripper 3990X, 128GB, 1080ti | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970
Office Systems: 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 3770, 16GB, some old quadro | i5 3210m, 8GB | some i7 macbook
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
User avatar
GambitDash
Developer
Developer
Posts: 81
Joined: Sat May 10, 2008 7:01 am

I was tardy in adding you :)

You should be good to go, Wolfy!

Cheers,
--G
User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5401
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

GambitDash wrote:I was tardy in adding you :)

You should be good to go, Wolfy!

Cheers,
--G
thanks!
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB
Workstations & Render machines: Threadripper 3990X, 128GB, 1080ti | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970
Office Systems: 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 3770, 16GB, some old quadro | i5 3210m, 8GB | some i7 macbook
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

schilcote wrote:I have a question. Can we put up pages about our mods or ourselves (as part of the community) on the wiki? Maybe as an easter egg? I would just like a "Schilcote" page on the wiki which tells about my mods and my contributions to the community.
Nobody saw me. :)
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5401
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Until I find that IRC faq I'll keep using the forums for now.
Is it alright if I add a table ("in-game reference") along with the items/modding/misc tables with the links for "ships" "Stations" and "factions"?
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB
Workstations & Render machines: Threadripper 3990X, 128GB, 1080ti | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970
Office Systems: 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 3770, 16GB, some old quadro | i5 3210m, 8GB | some i7 macbook
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

The IRC FAQ is here FYI,
http://wiki.neurohack.com/transcendence/wiki/irc
Is it alright if I add a table ("in-game reference") along with the items/modding/misc tables with the links for "ships" "Stations" and "factions"?
I think that would be great, atleast to have a place staked out for it so others can add/modify if they choose.

Look forward to seeing you on IRC!
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5401
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Prophet wrote:The IRC FAQ is here FYI,
http://wiki.neurohack.com/transcendence/wiki/irc
Is it alright if I add a table ("in-game reference") along with the items/modding/misc tables with the links for "ships" "Stations" and "factions"?
I think that would be great, atleast to have a place staked out for it so others can add/modify if they choose.

Look forward to seeing you on IRC!
Oh, someone said the IRC faq had how to verify your name... If someone could tell me how, I'll add it to that page as well.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB
Workstations & Render machines: Threadripper 3990X, 128GB, 1080ti | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970
Office Systems: 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 3770, 16GB, some old quadro | i5 3210m, 8GB | some i7 macbook
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Not that one. The one ChanServe points you at when you logon is the one with info about name verification. Sorry for misleading you.
User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5401
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

I transfered betel's data on shield/armor damage adj to there

http://wiki.neurohack.com/transcendence ... ent_curves
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB
Workstations & Render machines: Threadripper 3990X, 128GB, 1080ti | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970
Office Systems: 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 3770, 16GB, some old quadro | i5 3210m, 8GB | some i7 macbook
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
Post Reply