Search found 940 matches

by relanat
Fri Aug 24, 2018 6:03 am
Forum: Shipyards
Topic: various questions and stuff
Replies: 43
Views: 48892

Re: various questions and stuff

NMS wrote:
Fri Aug 03, 2018 6:33 pm
Are you sure the only difference is whether it's in a Type or Dockscreen?

OK. Second go. Wrong XML element. You had already spotted it. It's <OnGlobalPaneInit> doing it.
https://ministry.kronosaur.com/record.hexm?id=56455
by relanat
Mon Aug 20, 2018 6:42 am
Forum: Shipyards
Topic: various questions and stuff
Replies: 43
Views: 48892

Re: various questions and stuff

Attached is a text doc of minor stuff I was going to put on git. Time constraints prevent me from doing this so if someone wants to use them feel free. Otherwise I'll get them done eventually.
by relanat
Thu Aug 16, 2018 3:56 am
Forum: Shipyards
Topic: exclusion distance when adding stations help please
Replies: 5
Views: 10579

Re: exclusion distance when adding stations help please

There's a chance it'll end up too close to something ... because it picks the radius at random first That was, I think, the info I was missing. Thanks. So using a single value for radius will stop the erratic placement. So easy when you know how! I do however want to keep the randomness of the radi...
by relanat
Wed Aug 15, 2018 12:02 am
Forum: Modding Reference
Topic: Adding an XML attribute
Replies: 0
Views: 12333

Adding an XML attribute

1.8b2 A basic example mod of using ' xmlAddAttrib'. 'xmlSetAttrib'. (Apologies: I messed up the function name) (xmlSetAttrib xml attrib value) -> value We use xml functions to add a background image to a dockscreen. There are two dockscreens in the attached mod. They are the same dockscreen but we w...
by relanat
Tue Aug 14, 2018 11:55 pm
Forum: Shipyards
Topic: inventory mod code queries
Replies: 1
Views: 2107

inventory mod code queries

Working on a mod that duplicates the Captain's Log station inventory feature. There are a number of things I don't know how to do. 1. A way of updating the station's stored items data on undocking from the station. The mod stores a list of items (if any) from any station that has been docked at by t...
by relanat
Fri Aug 10, 2018 1:50 am
Forum: Shipyards
Topic: exclusion distance when adding stations help please
Replies: 5
Views: 10579

Re: exclusion distance when adding stations help please

Got it working but not with sysVectorRandom. Stations were still within the specified distance. Game code examples use it with ships (a lot) and stargates, but not stations (but I didn't search very thoroughly). And a lot of the game examples use sysVectorRandom to create the 'pos' first, then creat...
by relanat
Thu Aug 09, 2018 1:16 am
Forum: Modding Reference
Topic: How do I open the debug console?
Replies: 3
Views: 15766

Re: How do I open the debug console?

Just adding a bit more detail to the second option in Betelgeuse's post above. Another way is to add the switch to a shortcut. Current for 1.8b2. Open the Transcendence game folder. This is the folder which contains the files 'Transcendence.exe' and 'Transcendence.tdb'. Right-click 'Transcendence.ex...
by relanat
Mon Aug 06, 2018 4:17 am
Forum: Modding Reference
Topic: sysFindObject info
Replies: 1
Views: 7917

Re: sysFindObject info

Using the function. Using 'sysFindObject' gives us a list of objects. Unfortunately this is a list of numbers which don't mean much to us humans, although the computer likes them! To check if the criteria we have used is giving us the objects we want it can be handy to convert the list to a list of ...
by relanat
Mon Aug 06, 2018 4:15 am
Forum: Modding Reference
Topic: sysFindObject info
Replies: 1
Views: 7917

sysFindObject info

Here's the function help (1.8b2). (sysFindObject source criteria) -> list of objects criteria is a string that must specify one or more of the following categories: * Include all categories b Include beams G Include ONLY stargates G:xyz; Include ONLY stargate with ID 'xyz' k Include markers m Includ...
by relanat
Mon Aug 06, 2018 4:10 am
Forum: Shipyards
Topic: various questions and stuff
Replies: 43
Views: 48892

Re: various questions and stuff

Are you sure the only difference is whether it's in a Type or Dockscreen? Nope. That's why I posted here and didn't ticket it. If you can get the info transferred then it was errors in my code, a not uncommon event! I worked around it using type data but didn't have the time to do a great deal of f...
by relanat
Mon Aug 06, 2018 4:05 am
Forum: Commonwealth
Topic: Tomorrow on Twitch: Spreading the Word
Replies: 8
Views: 6892

Re: Tomorrow on Twitch: Spreading the Word

A whole heap of unrelated feedback and opinions dumped here because I can't Twitch or Discord easily. I found Transcendence when searching for a downloadable copy of a game I used to play. Got hooked and now can't even remember the name of the other game! I'm very interested in science-fiction and f...
by relanat
Fri Aug 03, 2018 4:29 am
Forum: Shipyards
Topic: graphics - overlay image query
Replies: 3
Views: 2674

Re: graphics - overlay image query

Thanks for that info. I'm totally graphics-challenged! So if a 120 facings image of a black number '1' with a transparent background was created could this image be overlayed on a ship to rotate with it? Or if not overlayed somehow displayed in the same location so it appeared over the top of the sh...
by relanat
Fri Aug 03, 2018 3:27 am
Forum: Shipyards
Topic: various questions and stuff
Replies: 43
Views: 48892

Re: various questions and stuff

I was using scrAddAction inside <OnGlobalPaneInit> in a <Type> UNID recently. It seemed that having this sort of code (scrShowScreen gScreen &dsWhicheverDockscreen { thisData: (codeGetWhatever info) }) in the code section of scrAddAction wouldn't carry the info to the destination dockscreen from a <...
by relanat
Wed Aug 01, 2018 8:53 am
Forum: Shipyards
Topic: graphics - overlay image query
Replies: 3
Views: 2674

graphics - overlay image query

One feature that would be handy is the ability to place a number, letter or small image on a ship image. As an example, using a small image of the number '1' and adding it as an overlay that rotates with the ship. Ths would simulate having a large painted number on the top of the ship and would be v...
by relanat
Wed Aug 01, 2018 8:51 am
Forum: Shipyards
Topic: exclusion distance when adding stations help please
Replies: 5
Views: 10579

exclusion distance when adding stations help please

Is there a way of making sure that a station added with <OnGlobalSystemCreated> doesn't overlap a station placed by the system code? The attached mod adds two small stargates to binary systems. They are placed between 40 and 70 ls from the centre of the each star. Using 'objSetPos' the player can in...