Search found 439 matches
- Sat Jun 23, 2018 10:15 am
- Forum: Shipyards
- Topic: various questions and stuff
- Replies: 16
- Views: 751
I commented out the Exclude nil code in AP's example and it works just as I needed. Those pesky little variables pop up everywhere in my code. But not for long! Ah, good. AP's addition of showing the values is nice, but you probably don't want to exclude the variables whose value is Nil. The 'exclu...
You're on the right track. You could do something like this: (block (desc (currList (typFind '$))) (for i 0 (- (count currList) 1) (setq desc (cat desc (typGetProperty (@ currList i) 'name) ": " (fmtNumber 'integer (plyGetCredits gPlayer (@ currList i))) "\n")) ) (scrSetDesc gScreen desc) ) But the ...
The ' \n ' s need to be in quotes. If you still get the '= expected' error, it means there's an XML element that isn't correctly formatted. Are you trying to put the code to generate the text inside an XML attribute? That's tricky to format, especially when strings are involved, and should usually b...
Yes, welcome! Entity declarations are used to convert human-readable text strings (entities) into the 32-bit integers used by the game (UNIDs), which are typically written as 8-digit hexadecimals. If you're planning to keep making mods, you should post in this thread to request a UNID range for your...
Ordered a laser collimater @ CTS it arrived and was loaded into the hold, except it wasn't actually loaded. Apparently disappeared into thin air. So if you select the Order action again, do you get the "Sorry, only one order per customer..." message? Looking at the code, I don't see how that would ...
- Fri Apr 13, 2018 1:56 am
- Forum: Shipyards
- Topic: customPicker list counting query
- Replies: 2
- Views: 219
(enum (unvFindObject (cat "t +unid:" theUnid ";")) theEntry ([email protected] result (@ theEntry 2) (lnkAppend (@ result (@ theEntry 2)) theEntry)) ) Assuming result is Nil to start, this should set it to a struct where each key is a node and the corresponding value is a list of the entries returned by unvFind...
These seem to be related to msKorolovAtCharon in KSMissionC01.xml. The ship classes are Ronin A and B and EI200. The orders are guard and dock. So the first set of errors are probably from the OnGlobalSystemStarted event, but I don't see why it wouldn't work. The other error is in the OnTimerAttack2...
- Thu Apr 05, 2018 7:07 am
- Forum: Commonwealth
- Topic: The Uzun Targeting Scanner is Real!
- Replies: 2
- Views: 330
In all seriousness, I did manage to implement the Uzun. But George didn't want to pull it into Corporate Command because it's really hacky and complicated and he wants to do it by allowing tracking to be an enhancement, which would be useful for other purposes and break any saves using my version. F...
- Sat Mar 31, 2018 4:43 am
- Forum: Modding Reference
- Topic: Function List — 1.8b1 (API 40)
- Replies: 5
- Views: 618
Looks like you're using a version of the script that doubles % characters to escape them, and it's no longer necessary. I think this is my newest version, which excludes aliases of primitives, finally fixing the last out-of-place entry, and adds a list of lambda functions.
I think "type" and "design type" mean the same thing in this context.
The level 6 Centurion playership which has been added in 1.8b1 for ship broker screens is level 6 but I can't see where this is set. Is it auto-calculated by the game if no level is set in code? If not specified, it uses the highest level installed equipment. With github and pull requests, etc, how...