Search found 143 matches

by ptbptb
Thu Jun 03, 2010 1:44 am
Forum: Modding Reference
Topic: Wiki Recruitment drive for function definitions.
Replies: 12
Views: 6720

alterecco wrote:Additionally, i suggest we keep out _deprecated and _changed functions from the wiki. That means, modulus should go, for example.
I would prefer they be kept, but have links pointing to them struck out with the <del> tag. I'll comment more in the morning when I'm awake! Thanks for your work. :D
by ptbptb
Wed Jun 02, 2010 8:12 pm
Forum: Modding Reference
Topic: Helper functions in the wiki
Replies: 2
Views: 2716

Where is the talk page for the functions page? Missing. :-) Talk page links have to be manually added, and I obviously missed that one. Some of the functions that end up in the forum thread also end up in CommonFunctions.xml, just namespaced and sometimes with a different name. Yes, I noticed that....
by ptbptb
Wed Jun 02, 2010 1:16 pm
Forum: Modding Reference
Topic: Helper functions in the wiki
Replies: 2
Views: 2716

Helper functions in the wiki

I've added some of the helper functions from the forum thread and elsewhere to the wiki. (See bottom part of this page ). You can post here if there is anything in particular you'd like to see included there. I'd also like to encourage people to sign up for the wiki so they can use the talk pages, a...
by ptbptb
Wed Jun 02, 2010 8:22 am
Forum: Community Discussions
Topic: Website Improvements
Replies: 19
Views: 9938

I like that there are very few bots and spammers in this forum. If a real person can't take the time to send an email after they sign up to say "Hi, I just signed up and I'm a real person, can you accept my registration?" or wait a few days then too bad. Which is all very well except 'a few days' m...
by ptbptb
Mon May 31, 2010 11:23 am
Forum: Ideas & Suggestions
Topic: Accessing data stored in XML elements / attributes
Replies: 1
Views: 1407

Accessing data stored in XML elements / attributes

If you've got something like ... <ItemTable UNID="&trConsumables10;"> <RandomItem criteria= "fmut +Consumable; -Illegal;" level= "10" levelCurve= "2" /> </ItemTable> Is it possible to tell what the criteria, level and level curve are for the table with UNID &trConsumables10; using tscript? e.g. some...
by ptbptb
Mon May 31, 2010 9:24 am
Forum: Community Discussions
Topic: Website Improvements
Replies: 19
Views: 9938

nearly spam-free forums thanks to those restrictive rules. That's one area where there is room for improvement. There doesn't seem to be any basis for telling whether someone is a) human or b) sincere in his interest in transcendence. All you know is their username (and possibly email). It would be...
by ptbptb
Sun May 30, 2010 10:53 pm
Forum: Shipyards
Topic: Deciphering Galactic Traders
Replies: 13
Views: 4599

By the way... I am thinking of making a rewrite of this mod. It was written quite a time ago, and there are several things that can be done to simplify it, and make it more usable (hackable)... Are there some changes you have made that you would like included in it? Well I'm not sure my code is wor...
by ptbptb
Sun May 30, 2010 8:08 pm
Forum: Shipyards
Topic: Deciphering Galactic Traders
Replies: 13
Views: 4599

alterecco wrote:I just keep a window open on the side, tailing the log while i fly around
The tension of not wanting to miss vital messages makes me pay better attention to the game so I don't get killed by stupidity to often. :lol:
by ptbptb
Sun May 30, 2010 7:20 pm
Forum: Shipyards
Topic: Deciphering Galactic Traders
Replies: 13
Views: 4599

Oh! I just noticed that you use (plyMessage ..), not (dbgLog ..). I think you will find some information in the log already, but in any case it is much simpler to just keep an eye on the log, rather than the player messages. Yeah, I know it's not efficient - but I like actually _playing_ while debu...
by ptbptb
Sun May 30, 2010 7:05 pm
Forum: Shipyards
Topic: Deciphering Galactic Traders
Replies: 13
Views: 4599

alterecco wrote:gt_CreateRandomItems is called from inside gt_RefreshStation. gt_RefreshStation in turn is called once per station
Ah! I really should have thought of that. :oops: Thanks!
by ptbptb
Sun May 30, 2010 6:45 pm
Forum: Shipyards
Topic: Deciphering Galactic Traders
Replies: 13
Views: 4599

Re: Deciphering Galactic Traders

Nevermind - I think I've figured out the problem GalacticTraders.xml only uses the gt_GetStationRandomItemRules function not the gt_GetStationStaticItemRules or gt_GetStationLookupItemRules functions (although they are defined). So basically static items (e.g. fuel station) and lookup items (e.g. mi...
by ptbptb
Sun May 30, 2010 6:05 pm
Forum: Shipyards
Topic: Deciphering Galactic Traders
Replies: 13
Views: 4599

Deciphering Galactic Traders

I've been experimenting with the very interesting mod by alterecco, Galactic Traders . I've played around with the code a bit and generally made some progress in adjusting it to my personal preferences, but now I'm a little stuck. It appears that 'sell only' stations are not getting any new stock wh...
by ptbptb
Sun May 30, 2010 3:48 pm
Forum: Community Discussions
Topic: Website Improvements
Replies: 19
Views: 9938

schilcote wrote:Personally, it took me a few weeks to get verified when I tried to register... long time ago....
I took advantage of the contact link in Xelerus and asked if he could get in touch with an admin here. :D Thanks again, bmbl.
by ptbptb
Sun May 30, 2010 2:12 pm
Forum: Modding Reference
Topic: Basic block question.
Replies: 5
Views: 3547

I hope that makes sense :) Yeah, thanks. ^ ^; Er, so apart from choosing a really bad example _and_ making a mistake in the code - what about my original question? :oops: The block function description says ... "Allows you to run several expressions one right after the other." Which makes is sound ...
by ptbptb
Sun May 30, 2010 1:42 pm
Forum: Modding Reference
Topic: Basic block question.
Replies: 5
Views: 3547

Basic block question.

OK, I'm just confirming things here really, but say you had code like ... (if (eq (random 0 50)) (plyMessage gplayer (cat "Adding " (itmGetName tempItem 8) " to station stocks.") ) (lnkAppend itemList tempItem) ) If you want to be sure (plyMessage) runs before (lnkAppend) then you have to use a (blo...