[SCRIPT] Mobile Mining / Mineral Collection Software v3.21 [UPDATED 26/8/07]

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Is this script....

5 - Excellent
68
65%
4 - Good
28
27%
3 - Average
7
7%
2 - Poor
1
1%
1 - Awful
1
1%
 
Total votes: 105

viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

I have XTM 0.7A installed and i get the "text" error.
till now i haven't got it in any other script, is there a way to help me out?
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Did you place the numbered file in the t directory?
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

yes, only the x3scripts.dat i didn't know what to do with it so i put it on in the x3 root
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Are you getting a "Readtext" entry in the command menu or bogus messages in the player log?

Hold on, you just have installed:
XTM mod 0.7a
XTM scripts
Mobile mining script

right?
Last edited by Bunny on Wed, 20. Jun 07, 17:03, edited 1 time in total.
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

both in the command menu and in the player msg menu
makes it unplayable as i don't understand why they are not willing to mine
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Can you check that file 448950.xml is in the t folder?

(498950.xml is the German file)
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

not found in the T folder, all my installs are in English.
i found 449851 however
Last edited by viking42 on Wed, 20. Jun 07, 20:15, edited 1 time in total.
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

So you have found 448950.xml in the t folder?
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

viking42 wrote:not found in the T folder, all my installs are in English.
i found 448951 however
no, as said above, it's not there
448950 is not in my T folder
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Okay, that is why the command is not showing up in the menu

>link removed<

Unzip it and in the t folder you will find 448950.xml - put this in the X3 t folder
Also copy the files in the script folder to the X3 script folder.

...then Bob should be your father's brother.

Cheers

Bunny
Last edited by Bunny on Mon, 25. Jun 07, 16:27, edited 1 time in total.
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

well, i have no text error anymore...

the option has disapeared.... is not anymore in the ingame orders list
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Next check:
The ship is fitted with special command software, ore collector and a mineral scanner?

Does it have a homebase? If so what type is it?
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

it's a demeter miner
special command software, ore collector and mineral scanner are in
no homebase set.

the same ship had the mining feature working before, only the text was quite unclear
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Check that setup.plugin.bms is in the scripts folder.
This file must contain code, it should not be empty
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

it is there and not empty
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

Okay, here is the code that I found in it

Code: Select all

001   $ScriptVersion = get script version
002   set global variable: name='plugin.bms.ScriptVersion' value=$ScriptVersion
003   
004   $ScriptVersionSign =  read text: page=1517 id=0
005   $ScriptVersionSign =  string $ScriptVersionSign to integer
006   
007   if $ScriptVersion > $ScriptVersionSign
008    $PageID = 8950
009    load text: id=$PageID
010    set global variable: name='plugin.bms.text.id' value=$PageID
011   end
012   
013   $Cmd = COMMAND_BMS_COLLECT_MINERALS
014   
015   global script map: set: key=$Cmd, class=Ship, race=Player, script='plugin.bms.mainscript', prio=0
016   global script map: ignore: key=$Cmd, class=Fight drone, race=Player
017   set script command upgrade: command=$Cmd  upgrade=Spezialsoftware Mk1  script='plugin.bms.select'
018   
019   return null
I reckon line 007 is causing the bother here.
.....So....
Let's try the dev version instead
http://www.xai-corp.net/files/xaicorp/p ... .07DEV.zip

(or knock out lines 007 an 011 on the existing version instead)
Last edited by Bunny on Mon, 25. Jun 07, 16:38, edited 1 time in total.
User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike »


The code is correct.

Code: Select all

	<page id="8950" title="Mobile Mining / Mineral Collection Software" descr="">
		<t id="001">\033GBergbausoftware MK1\033X</t>

Code: Select all

004   $ScriptVersionSign =  read text: page=1517 id=0 
005   $ScriptVersionSign =  string $ScriptVersionSign to integer 
If 1517,0 doesn't exist then $ScriptVersionSign = 0 and 8950 is loaded.

@viking42

Is the script editor activated?

Check you script and t folder again:

..\scripts\..

lib.by.deploysatellite.xml
lib.by.emptyscript.xml
lib.by.getbestturret.pow.xml
lib.by.getfreetaskslot.xml
lib.by.isvalidsector.xml
lib.by.monitorship.xml
lib.by.randommove.xml
lib.by.setpilotname.xml
lib.by.waitshiprecharge.xml
plugin.bms.breakrocks.xml
plugin.bms.checkmineraldemand.xml
plugin.bms.checksats.xml
plugin.bms.command.xml
plugin.bms.diagnostics.xml
plugin.bms.dockedtasksv2.xml
plugin.bms.findtradetarget.xml
plugin.bms.mainscript.xml
plugin.bms.mineboss.xml
plugin.bms.monitorship.xml
plugin.bms.navbeacon.xml
plugin.bms.restart.xml
plugin.bms.select.xml
plugin.bms.sellminerals.xml
plugin.bms.setdebuglog.xml
plugin.bms.waitshieldrecharge.xml
setup.plugin.bms.xml

..\t\..

448950.xml
498950.xml
Image
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

hi,

I installed the new zip you gave,

I then schecked if all the line are existing in the scripts and T folder and they are

i erases 498951 and 448951 because they where still there

I tiped again the "thereshallbewings" (without lockup)

I reloaded the.spk file provide with the first version of this script

And it works!!! unfortunately we now don't know what the issue was
viking42
Posts: 115
Joined: Mon, 18. Dec 06, 20:00
x4

Post by viking42 »

i made a reinstall because some unknown txt messages still bothered me
i made multiple tests with and without the mining scripts last version you gave me
and i can make it official:

-This script is not unstable with XTM 0.7
-This script needs a clear .SPK
Bunny
Posts: 2014
Joined: Mon, 1. Dec 03, 19:44
x3ap

Post by Bunny »

What messages are you getting?

It has been running for the past week on my XTM 0.7 game - what is the nature of the instability?

BTW - This script is getting tested on devnet http://forum.egosoft.com/viewtopic.php?t=182230

Return to “X³: Reunion - Scripts and Modding”