Search found 342 matches

by NMS
Sat Mar 25, 2017 7:32 am
Forum: Ideas & Suggestions
Topic: Armor balance discussion
Replies: 36
Views: 402

Re: Armor balance discussion

There are a lot of good points here. But I disagree with the people who are down on titanium barricades. I consider the doubles (level 3) about as good as level 5s and the quads (level 4) better than level 6s (except maybe blast plate because of the convenience of rad immunity). Sure, they have less...
by NMS
Sat Mar 18, 2017 12:27 am
Forum: Commonwealth
Topic: Forum theme
Replies: 42
Views: 820

Re: Forum theme

Well, if you can tolerate a light background, prosilver is still working, and more compact.
by NMS
Wed Mar 15, 2017 3:56 am
Forum: Modding Reference
Topic: XML modification tutorial
Replies: 5
Views: 107

Re: XML modification tutorial

IMPORTANT EDIT: I put a typo in my request topic which was inadvertantly carried over to this topic. I corrected the string in the first post. Some clarification if possible. "Tag" is the term for the name of an XML element. Any element that's inside another element is considered a subelement of th...
by NMS
Sun Mar 12, 2017 3:08 pm
Forum: Modding Reference
Topic: Function List — 1.7b6 (API 35)
Replies: 8
Views: 186

Re: Function List — 1.7b6 (API 35)

You're welcome. And I'd been meaning to write a function that substitutes for arbitrary text in a string anyway. You may find there are more changed functions than expected. It turns out a bunch of functions have had % symbols in their help text all along, but they were being stripped in the output ...
by NMS
Sun Mar 12, 2017 5:19 am
Forum: Modding Reference
Topic: Function List — 1.7 (API 35)
Replies: 0
Views: 73

Function List — 1.7 (API 35)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ F U N C T I O N L I S T (!= x1 x2 ... xn) -> True if any arguments are not equal (* x1 x2 ... xn) -> z (+ x1 x2 ... xn) -> z (- x y) -> z (- x) -> -x (/ x y) -> z (< x1 x2 ... xn) -> True if x1 < x2 < ... < xn (<= x1 x2 ... xn) -> True if x1 <= x2 <= ... <= xn (= x1 ...
by NMS
Sat Mar 11, 2017 10:48 pm
Forum: Modding Reference
Topic: XML modification tutorial
Replies: 5
Views: 107

Re: XML modification tutorial

Thanks! OK, advanced topics: Deleting a subelement by name The (xmlDeleteSubelement) function doesn't accept a tag, only an index. So you have to find the index of the element you want to delete. For instance, suppose that the <Trade> element in the Korolov example might already have a <SellShip> el...
by NMS
Sat Mar 11, 2017 8:29 am
Forum: Shipyards
Topic: XMLAppendSubElement perhaps?
Replies: 1
Views: 38

Re: XMLAppendSubElement perhaps?

We've been in need of a tutorial on these functions, so I used this as an example to write one:
https://forums.kronosaur.com/viewtopic.php?f=8&t=8049
by NMS
Sat Mar 11, 2017 8:28 am
Forum: Modding Reference
Topic: XML modification tutorial
Replies: 5
Views: 107

XML modification tutorial

Have you ever wanted to make a mod that makes a small change to an existing type? If you read the Modding Reference section, I'm sure you have. Overriding the entire type may mean including huge amounts of code from the core game with only slight changes, and makes your mod incompatible with other m...
by NMS
Sat Mar 11, 2017 5:37 am
Forum: Beginner's Luck
Topic: Little known facts that could help your game
Replies: 10
Views: 428

Re: Little known facts that could help your game

I think you're both right. If the player has more of the item than the station, they will always be willing to buy and pay full price. If not, they may still pay full price as long as the number they have is small compared to the typical quantity of the item (numberAppearing). I'm not sure exactly w...
by NMS
Wed Mar 08, 2017 6:34 am
Forum: Mod Announcements
Topic: [New Mod-Tower Defense] Star Genesis 00
Replies: 95
Views: 12473

Re: [New Mod-Tower Defense] Star Genesis 00

Yeah, you have to use the mouse. It might be better to go back to the old services and override dsRepairArmor to allow repairing heavily damaged armor (and adjust the cost calculation if you want - armGetRepairCost seems to be based only on level). I have to play a bit more to get a sense of how the...
by NMS
Tue Mar 07, 2017 11:26 am
Forum: Mod Announcements
Topic: [New Mod-Tower Defense] Star Genesis 00
Replies: 95
Views: 12473

Re: [New Mod-Tower Defense] Star Genesis 00

Well, I wanted to fix a couple things, and you know how it goes: - Made time stop for all objects (except the sun) in all currently reachable dockscreens. - Made the attack timer not run while time is stopped by making it a recurring timer that decrements a counter. - Made scrap the default currency...
by NMS
Tue Mar 07, 2017 9:39 am
Forum: Shipyards
Topic: Need latest source!
Replies: 9
Views: 100

Re: Need latest source!

You can't open TransData from Windows Explorer, you have to run it from the command line or a batch file. Here's the most convenient way to use it.
by NMS
Mon Mar 06, 2017 7:03 pm
Forum: Mod Announcements
Topic: [New Mod-Tower Defense] Star Genesis 00
Replies: 95
Views: 12473

Re: [New Mod-Tower Defense] Star Genesis 00

You aren't using the same conditions for whether to show the changelog and whether to start the attack. So if the changelog is set to not show again, but there's a new version, the timer will be started twice (I'm not sure what the consequences of this are.) Instead, just start it in the same switch...
by NMS
Sun Mar 05, 2017 3:56 pm
Forum: Mod Announcements
Topic: [New Mod-Tower Defense] Star Genesis 00
Replies: 95
Views: 12473

Re: [New Mod-Tower Defense] Star Genesis 00

Yeah, it's used by the gem of contrition, so it still works. I realized it doesn't apply to the player, so that explains the fuel use. You might need to specifically suspend the player ship to make it impossible to die by leaving it open too long. I definitely didn't leave that screen open for 50000...
by NMS
Sun Mar 05, 2017 5:55 am
Forum: Mod Announcements
Topic: [New Mod-Tower Defense] Star Genesis 00
Replies: 95
Views: 12473

Re: [New Mod-Tower Defense] Star Genesis 00

Okay, after looking at the code I have a theory. It looks like time is supposed to be suspended while the changelog is displayed. But it wasn't. At least, I was slowly using fuel. So if I spent long enough in that screen, which I probably did, the first wave could have started, and the recurring tim...