Search found 473 matches

by NMS
Sat Nov 17, 2018 5:42 am
Forum: Shipyards
Topic: setting cursor pos to an item in OnGlobalPaneInit
Replies: 5
Views: 875

Re: setting cursor pos to an item in OnGlobalPaneInit

I fixed the version you uploaded by adding the error check to your function and using it in the action code. But the item moving around in the list is a bit annoying.
by NMS
Wed Nov 14, 2018 8:12 am
Forum: Ideas & Suggestions
Topic: Starting ship balance
Replies: 6
Views: 116

Re: Starting ship balance

Well, there are fewer 20s and more 19s, 21s, and 22s than I expected. But there's still a big cluster in the 18-22 range which contains most of the enemies that are both tough and potentially able to chase the player down. Most of the 25s, 30s, and 35s are Corsairs, Wind Slavers, and Hornets, respec...
by NMS
Tue Nov 13, 2018 9:59 pm
Forum: Ideas & Suggestions
Topic: Starting ship balance
Replies: 6
Views: 116

Re: Starting ship balance

In general, I'm not sure you're taking into account that most stats have decreasing marginal utility. For instance, the 3rd and 4th unrestricted slots on a gunship are much more valuable than the 6th and 7th non-weapon slots on the EI500, though the marginal benefit of weapon slots probably decrease...
by NMS
Mon Nov 12, 2018 7:48 am
Forum: Ideas & Suggestions
Topic: Fuel efficiency for starting ships
Replies: 2
Views: 39

Re: Fuel efficiency for starting ships

Players generally spend a lot more time traveling and in dockscreens than fighting, so the standby power use is more important. That's much more heavily weighted towards shields' power use.
by NMS
Fri Nov 09, 2018 7:23 am
Forum: Shipyards
Topic: various questions and stuff
Replies: 31
Views: 2740

Re: various questions and stuff

I think you'd have to use XML functions to get the damage string and find "mining:" in it.
by NMS
Fri Nov 09, 2018 6:49 am
Forum: Shipyards
Topic: setting cursor pos to an item in OnGlobalPaneInit
Replies: 5
Views: 875

Re: setting cursor pos to an item in OnGlobalPaneInit

The reason you're getting freezes is that you removed this section from my code: (if (neq (scrGetListCursor gScreen) cursor) (block Nil (scrSetListCursor gScreen 0) (setq done True) ) ) If you set the cursor to a value, but then getting the cursor doesn't return that value, you've reached the end of...
by NMS
Wed Oct 31, 2018 11:49 am
Forum: Beginner's Luck
Topic: A few beginner's questions
Replies: 4
Views: 1014

Re: A few beginner's questions

Welcome to the forum! I don't think you'll be able to complete the mission, and it will prevent you from getting a few more missions. But they're not important to completing the game and don't seem to have any rewards. You seem well equipped, assuming you have decent armor and missiles. I don't thin...
by NMS
Wed Oct 31, 2018 10:51 am
Forum: Shipyards
Topic: setting cursor pos to an item in OnGlobalPaneInit
Replies: 5
Views: 875

Re: setting cursor pos to an item in OnGlobalPaneInit

Maybe this? (block ( (theItem (scrGetItem gScreen)) (cursor 0) done ) (scrRefreshScreen gScreen) (loop (not done) (scrSetListCursor gScreen cursor) (if (neq (scrGetListCursor gScreen) cursor) (block Nil (scrSetListCursor gScreen 0) (setq done True) ) ) (if (eq theItem (scrGetItem gScreen)) (setq don...
by NMS
Thu Oct 25, 2018 11:44 pm
Forum: Bug Reports & Tech Support
Topic: Eternity Port main story broke
Replies: 2
Views: 1363

Re: Eternity Port main story broke

The very first Ministry ticket I opened was about problems with gating out during certain missions, including that one.

That station name belongs to the type stNAUAtlasBase, but I don't see anything wrong with its dockscreens. Weird.
by NMS
Thu Oct 25, 2018 11:32 pm
Forum: Stable (v1.7) Bug Reports
Topic: Autons hit stations which trigger them to become hostile to you
Replies: 1
Views: 203

Re: Autons hit stations which trigger them to become hostile to you

In 1.8 AI ships are more accurate and better at avoiding friendly fire.
by NMS
Mon Oct 22, 2018 4:25 am
Forum: Shipyards
Topic: various questions and stuff
Replies: 31
Views: 2740

Re: various questions and stuff

Stations can use <ImageVariants>, but I'm not sure about ships.
by NMS
Thu Oct 11, 2018 7:35 am
Forum: Shipyards
Topic: finding jettisoned cargo crates on creation help please
Replies: 2
Views: 120

Re: finding jettisoned cargo crates on creation help please

Hmm. The global variables gSource and aScreenUNID get set when a screen opens, but they don't get unset when it's closed. Also, if your code is in another type's event, it may set gSource to its own type or object. So it's better to rely on (scrGetScreen gScreen). But note that it's an error if no s...
by NMS
Thu Oct 11, 2018 6:30 am
Forum: Shipyards
Topic: detecting system map use query
Replies: 2
Views: 118

Re: detecting system map use query

I don't think there's currently a way to do this without modifying the code of the items. There's no event like OnGlobalPlayerUsedItem, although it could be useful. And OnInvokedByPlayer only works for powers. Technically, a mod could use XML functions to add code to their Invoke events without chan...
by NMS
Tue Sep 25, 2018 6:21 am
Forum: Shipyards
Topic: auton naming bug?
Replies: 2
Views: 548

Re: auton naming bug?

In 1.8 Beta 3.3 you can now get the actual names of autons without using 'noEvent.
by NMS
Fri Sep 21, 2018 3:20 am
Forum: Shipyards
Topic: finding lists in lists code help please
Replies: 2
Views: 203

Re: finding lists in lists code help please

Is entryToAdd a global variable that you aren't clearing each time, by any chance? That would cause the new results to be appended to the previous results each time you run it. If that's not the case, then I'd guess there are repeated entries in sortedMatchingItemList. However, there's probably a be...