[Discussion] Generic X3TC S&M questions I
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 2033
- Joined: Wed, 29. Jun 05, 01:45
New Question:
I'm investigating mobile mining to make my own script and I'm noticing some .. undesirable behavior.
#1) All collectible asteroids have the same yield as the original rock. So If I wanted to zap some into my cargo bay... how much am I suppose to bring in? (How much does the game bring in? U~(0, 1? 2? yield? k/relval?)
#2) The game keeps creating some Maintype 28, Subtype 0 "invisible" asteroids (which are not collectible, but have a yield, so presumably your suppose to break them some more and then get the asteroids, thou from my experiments, invisible asteroids never give any smaller asteroids)
#3) To clear up space junk a bit, I want to destroy all rocks, even if they don't have any yield. However, I can't seem to find a way to get the S.E to lock onto yield less mini rocks. The find debris instruction keeps bringing up null. I can manually target them and they seem to always have a maintype 0 subtype 0.
Is there any way to target these with the S.E alone?
I'm investigating mobile mining to make my own script and I'm noticing some .. undesirable behavior.
#1) All collectible asteroids have the same yield as the original rock. So If I wanted to zap some into my cargo bay... how much am I suppose to bring in? (How much does the game bring in? U~(0, 1? 2? yield? k/relval?)
#2) The game keeps creating some Maintype 28, Subtype 0 "invisible" asteroids (which are not collectible, but have a yield, so presumably your suppose to break them some more and then get the asteroids, thou from my experiments, invisible asteroids never give any smaller asteroids)
#3) To clear up space junk a bit, I want to destroy all rocks, even if they don't have any yield. However, I can't seem to find a way to get the S.E to lock onto yield less mini rocks. The find debris instruction keeps bringing up null. I can manually target them and they seem to always have a maintype 0 subtype 0.
Is there any way to target these with the S.E alone?
-
- Posts: 2033
- Joined: Wed, 29. Jun 05, 01:45
Context: Want to make a script to replace the current mining system
Question 1:
I don't suppose anyone has information on mobile minnings resource outcome (per yield? or other?)? As I tried to run an experiment on my game... and 3 yield of nividium resulted in something like 1454 nividium... But a 20 yield seemed to yield 0??
Question 2:
Debris, how does it work?
I had always assumed that 1 debris would be 1 rock. But... I suspect it might actually be a field of rocks. If such is the case, how would I go about removing the actual individual rocks, from a debris field via the s.e?
I've tried destruct show explosion true/false and similarly with the killer flag set to [playership] but all that happens is the actual mini rocks remain, but they just loose their underlying mineral properties (i.e. They go from nividium 3, to just "asteroid" will no info
Question 2a:
How do I destroy a debris field/rock?
Question 3: Bah! -resloved-
I'm having issues getting one of my scripts to function properly and I was hoping a fresh set of eyes could help.
Basically, I'm doing a readtext, number id etc.
Now I made this file in C#, and then edited it in note pad first (fail) then wordpad (still failing)
Every time I Read in t id0, it keeps returning read text errors instead of 20? The script doesn't do anything fancy when it reads it in and I have reloaded the text file
-Resolved Q3- Have to user lower case in thingy
Question 1:
I don't suppose anyone has information on mobile minnings resource outcome (per yield? or other?)? As I tried to run an experiment on my game... and 3 yield of nividium resulted in something like 1454 nividium... But a 20 yield seemed to yield 0??
Question 2:
Debris, how does it work?
I had always assumed that 1 debris would be 1 rock. But... I suspect it might actually be a field of rocks. If such is the case, how would I go about removing the actual individual rocks, from a debris field via the s.e?
I've tried destruct show explosion true/false and similarly with the killer flag set to [playership] but all that happens is the actual mini rocks remain, but they just loose their underlying mineral properties (i.e. They go from nividium 3, to just "asteroid" will no info
Question 2a:
How do I destroy a debris field/rock?
Question 3: Bah! -resloved-
I'm having issues getting one of my scripts to function properly and I was hoping a fresh set of eyes could help.
Basically, I'm doing a readtext, number id etc.
Now I made this file in C#, and then edited it in note pad first (fail) then wordpad (still failing)
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<LANGUAGE ID="44">
<PAGE ID="7743" title="Voice Control" descr="">
<t id="0">20</t>
</PAGE>
</LANGUAGE>
-Resolved Q3- Have to user lower case in thingy
-
- Posts: 7
- Joined: Tue, 4. Mar 08, 09:39
-
- Moderator (Script&Mod)
- Posts: 22258
- Joined: Sun, 14. Nov 04, 23:26
which librarys do you mean ?
in general library scripts are a collection of scripts or common functions that scripters create to so they dont have to repeat these functions in all thier scripts.
it also means that when updating these functions you only have to update the library script instead of all of them.
if a script needs a certain library, it usually says on the thread
in general library scripts are a collection of scripts or common functions that scripters create to so they dont have to repeat these functions in all thier scripts.
it also means that when updating these functions you only have to update the library script instead of all of them.
if a script needs a certain library, it usually says on the thread
-
- Posts: 17
- Joined: Thu, 15. Jun 06, 14:56
I have a question related to my last post (and edit) of this thread:
http://forum.egosoft.com/viewtopic.php?t=269280
I asked for help/advice in that thread and didn't ask here sooner since I didn't want to cross post, but now an issue has surfaced and I don't want to keep spamming that thread.
I packaged the bug fix as an .spk, thinking it would make a backup of the original file when installed. It appears that's not the case though, so the package can't be properly uninstalled which kind of defeats the purpose of installing it through the plugin manager in the first place.
Should I just leave it as an .spk anyway or provide the .pck file directly and instruct people to make a backup of the original script?
(in case it turns out my fix somehow broke something worse)
http://forum.egosoft.com/viewtopic.php?t=269280
I asked for help/advice in that thread and didn't ask here sooner since I didn't want to cross post, but now an issue has surfaced and I don't want to keep spamming that thread.
I packaged the bug fix as an .spk, thinking it would make a backup of the original file when installed. It appears that's not the case though, so the package can't be properly uninstalled which kind of defeats the purpose of installing it through the plugin manager in the first place.
Should I just leave it as an .spk anyway or provide the .pck file directly and instruct people to make a backup of the original script?
(in case it turns out my fix somehow broke something worse)
-
- Posts: 17
- Joined: Thu, 15. Jun 06, 14:56
Plugin Manager Lite v1.00.
And it looks like I was wrong. Or at least it works now after I restored the file through steam and installed/uninstalled the package again.
I guess I was tired when I installed the package the first time and forgot I already had the modified file in the dir or something...
And it looks like I was wrong. Or at least it works now after I restored the file through steam and installed/uninstalled the package again.
I guess I was tired when I installed the package the first time and forgot I already had the modified file in the dir or something...
-
- Posts: 106
- Joined: Sat, 26. Dec 09, 23:42
I've been looking around but without any luck...
How do I simply reset my notoriety with a race to be 0? I engaged in a frustrating skirmish with the Teladi where my dang lasertowers shot every Teladi on sight, and now my race relations are completely screwed up.
I assume you can do this in a single line, as this should be a very easy variable to change... can anyone explain how changing my rep works, or point me to a tutorial that will explain it?
How do I simply reset my notoriety with a race to be 0? I engaged in a frustrating skirmish with the Teladi where my dang lasertowers shot every Teladi on sight, and now my race relations are completely screwed up.
I assume you can do this in a single line, as this should be a very easy variable to change... can anyone explain how changing my rep works, or point me to a tutorial that will explain it?
-
- Posts: 1350
- Joined: Wed, 4. Jan 06, 03:28
Are Job ID No's used elsewhere or can I just add another without issues:
In the jobs file:
Say there's job id's;
554
555
556
819
820
821
....
Can I create another job using the next 500 number (in this case 557) without problems or is the ID No. used in another file?
(Basically are ID No.s file specific or common throughout the game files)
In the jobs file:
Say there's job id's;
554
555
556
819
820
821
....
Can I create another job using the next 500 number (in this case 557) without problems or is the ID No. used in another file?
(Basically are ID No.s file specific or common throughout the game files)
[ external image ]
Vanilla Malt Gamestarts
"The only time you have too much fuel is when you're on fire"
Vanilla Malt Gamestarts
"The only time you have too much fuel is when you're on fire"
-
- Posts: 55
- Joined: Fri, 6. Mar 09, 12:35
Hello, Gazz!
Sorry for not answering so long.
Maybe someone know which files there is need to edit and what part of them?
Sorry for not answering so long.
It is too difficult for me - and I think - it is better - to edit formula - than to check constantly, even if not all gainings are accounted.Gazz wrote:Sure.
The easiest way is to take an off-the-shelf AL Plugin template and have the script check all your notorieties every few minutes.
If the gain during that time is faster than whatever you defined, then the notoriety is reduced to your intended max gain.
Maybe someone know which files there is need to edit and what part of them?
-
- Posts: 1962
- Joined: Tue, 8. Jan 08, 18:19
Does anyone happen to know if SIGNAL_SELWARE works differently with stations of type Shipyard than with other stations?
The reason I'm asking is, that I added a secondary signal to all stations of type Fabric, which also includes Shipyards apparently (is there an overview of the type hierarchies?). I used the following code:
As you might guess by the name, the script "signal.sellship" is used, when ships are sold by the factory or, looking from the other side, bought by the player.
Strangly though, the signal does not fire, when a station of type Shipyard sells a ship (I buy it), but when it buys one (I sell it).
So I went ahead and added some debug information to the "signal.sellship" script, which results in the following output (values are scripts arguments):
So it sold the amount of -1 ships, which is somehow right, since it actually bought the ship.
I hope someone can explain this behaviour, because I really don't understand it.
Greetings,
ScRaT
The reason I'm asking is, that I added a secondary signal to all stations of type Fabric, which also includes Shipyards apparently (is there an overview of the type hierarchies?). I used the following code:
Code: Select all
global secondary signal map: add signal={SIGNAL_SELWARE} race=null class={Fabric} script='signal.sellship' prio=0 name='signal.sellship'
Strangly though, the signal does not fire, when a station of type Shipyard sells a ship (I buy it), but when it buys one (I sell it).
So I went ahead and added some debug information to the "signal.sellship" script, which results in the following output (values are scripts arguments):
Code: Select all
signal.sellship :: Shiptype: Medusa - Buyer: Ihr Buster - Amount: -1 - Price: 2349873
So it sold the amount of -1 ships, which is somehow right, since it actually bought the ship.
I hope someone can explain this behaviour, because I really don't understand it.
Greetings,
ScRaT
-
- Posts: 183
- Joined: Thu, 22. Jan 09, 23:03
Sounds to me you got the boolean TRUE in return. As in the transaction went through, rather than reporting the amount.
TCAN TC/AP Artificial Life, Menudriven Automated Ship/Station Namer
Spex: i7 4790K@4Ghz 16Gb DDR3 GTX970Strix(4Gb)
X:R 454 Hours. 15 hours unmodded.
Spex: i7 4790K@4Ghz 16Gb DDR3 GTX970Strix(4Gb)
X:R 454 Hours. 15 hours unmodded.
-
- Posts: 2178
- Joined: Sat, 14. Jan 06, 21:29
I apologize if this isn't where this question should go, but the X3R: MD thread is over a year old, and I hate digging something that old up. I didn't see anything in the tutorials for X3TC SM thread either.
Is there an updated PDF and mission director files available that include all the changes to the MD since 2.5 TC? I'm looking through the old X3:R one, and I hear that there are tons more options available.
Many Thanks!
Is there an updated PDF and mission director files available that include all the changes to the MD since 2.5 TC? I'm looking through the old X3:R one, and I hear that there are tons more options available.
Many Thanks!
-
- Posts: 352
- Joined: Fri, 3. Aug 07, 17:27
hi !
i tried to clear a marines training center (hope thats the english name) of its marines to spawn new troopers.
i tried it with:
as result i have 71 "unknown objects" in the station instead of 71 marines.
i tried with the same result.
then i moved them into a spawned TP and destroyed it, same result.
i wondered why the "unknown objects" are in the station and discovered another feature:
if you move marines with
you see them in the inventory of the TP and in the station (same names) and there still 71 left in the station. then i destroyed the TP manually in space and after this the named marines, that was in station and in TP are now "unknown objects" inside the station.
and not to forget, the destroy commands work well on marines, if i buy them manually into an TP (or other ship) and destroy them inside one of my ships. they dont convert to an "unknonwn object".
now the 2 questions:
1) can i clearly remove them from game when they are in training center ?
2) is there a way to move (or buy) them by script from a station into a ship ? (for another reason i need some of them alive )
thx for help !
i tried to clear a marines training center (hope thats the english name) of its marines to spawn new troopers.
i tried it with:
Code: Select all
Script aaaa.test
Version: 0
for Script Engine Version: 44
Description
Description
Arguments
1: station1 , Var/Ship/Station , 'station'
Source Text
001 $marines = $station1 -> get marines array
002 $marines.size = size of array $marines
003
004 while not $marines.size == 0
005 |$marine = $marines[0]
006 |= $marine -> destroy passenger
007 |remove element from array $marines at index 0
008 |$marines.size = size of array $marines
009 end
010
011 display subtitle text: text='alle tot' duration=500 ms
012 return null
i tried
Code: Select all
destruct: show no explosion
then i moved them into a spawned TP and destroyed it, same result.
i wondered why the "unknown objects" are in the station and discovered another feature:
if you move marines with
Code: Select all
= $marine -> move passenger to ship $ship: set passenger as pilot=[FALSE]
and not to forget, the destroy commands work well on marines, if i buy them manually into an TP (or other ship) and destroy them inside one of my ships. they dont convert to an "unknonwn object".
now the 2 questions:
1) can i clearly remove them from game when they are in training center ?
2) is there a way to move (or buy) them by script from a station into a ship ? (for another reason i need some of them alive )
thx for help !
Code: Select all
-
- Posts: 1962
- Joined: Tue, 8. Jan 08, 18:19
Thanks for the insight, Cycrow! I guess I'll just remove the secondary signal from shipyards.Cycrow wrote: i think its the way shipyard handles sales, i remember it being different from normal factorys, but it was a while ago since i used them
Just look for the newest "director" directory in the .cat files (using the X3 Editor 2 for example). You need the following files:Is there an updated PDF and mission director files available that include all the changes to the MD since 2.5 TC? I'm looking through the old X3:R one, and I hear that there are tons more options available.
- director.css
- director.htm
- director.xsd
- director.xsl
- dirobjdb.xsd
- dirschema.xsl
The director.htm lists all commands available.
Greetings,
ScRaT
-
- Posts: 2178
- Joined: Sat, 14. Jan 06, 21:29
Thanks! I'll look into them when I figure my little gate problem. Im trying to link two of the Terran unknown sectors out past Oort Cloud with two jump gates, but Im having some issues.ScRaT_GER wrote:Just look for the newest "director" directory in the .cat files (using the X3 Editor 2 for example). You need the following files:If you extract them with the X3 Editor 2, pay special attention to the file endings, since they are not extracted correctly (at least they weren't, when I did it a while ago).
- director.css
- director.htm
- director.xsd
- director.xsl
- dirobjdb.xsd
- dirschema.xsl
The director.htm lists all commands available.
Greetings, ScRaT
Code: Select all
$TUSX7Y5EG = create gate type=4 add to:[Sector X7,Y5] gateid=8 dstx=8 dsty=5 dstgateid=7 x=[x] y=[y] z=[z]
$TUSX8Y5EG = create gate type=3 add to:[Sector X8,Y5] gateid=7 dstx=7 dsty=5 dstgateid=8 x=[x] y=[y] z=[z]