Where do I find the jobs tasks ? (resolved - and this is worth documenting !)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Where do I find the jobs tasks ? (resolved - and this is worth documenting !)

Post by apricotslice »

I'm trying to get a job started, but the ships dont have any guns loaded.

I suspect its because the job itself is usually done by a goner ship which dont carry any.

But where do I find the script that creates the jobs to check if guns are spawned in the ship or not ?

In particular, I'm trying to use the goners preach task. I thought I might need to duplicate it into a new task and enable the guns.

Anyone any ideas about this ?
Last edited by apricotslice on Sat, 1. Aug 09, 07:12, edited 1 time in total.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

As far as I can tell, job ships are spawned using the same as 'add default equipment' script command, but it's hardcoded. I'm not entirely clear what you are doing - you mean you've modded jobs to add some new preachers but using different ships, and those ships are being spawned without guns? Or you've written a script to spawn ships then started the preach job script on them explicity?
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Added a job to jobs.txt using Observes editor.

The ships are created and perform perfectly, they just dont spawn with any guns.

The task is the one the goners use, because thats the action I want them to do. Except that unlike the goners, if attacked, I want them fighting back.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22432
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

u can usually define the equipment for the ship in the jobs file itself.

u can also get it to run a script on creation, but that doesn't happen by default. So unless you set that up, the only script thats run is the one for the command you started on it
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

I've got all the guns typed ticked, all the not boxes unticked, I've specified 4 types of guns accross 3 groups, and dont get any guns loaded.

Any clues ?
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

I've always had the sneaking suspicion that the equipment that job ships spawn is dependent on the player fight level (but this is a baseless guess)

But given that jobs are essentially scripts, I think it would probably be best if you just write a script to equip the ships, into the actual job script (or called from it or w/e)
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

s9ilent wrote:But given that jobs are essentially scripts, I think it would probably be best if you just write a script to equip the ships, into the actual job script (or called from it or w/e)
Which was my basic question !

Where are the job scripts ? I cannot find any correlation between ships and job commands.
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

They are referenced in the jobs file?
E.g. The script for this one (the top most one) is trade.docktrader. Although... I don't know where the ! at the front went... (And the !trade.docktrader is in the scripts folder, possibly in a cat/dat, I'm not to sure any more as I unpacked all of mine)

*edit* ahh I see, sorry
if the jobs file says xxxx, then the script is called
"!job.xxxxxxxxxxxxxx"
So that one is "!job.trade.docktrader"

I suspect that the ! isn't required for custom job scripts

Code: Select all

(all);200;2;trade.docktrader;0;10003;0;0;1;0;0
;0;0;2;15;2;2700;-1;0;0;1;1;0;0;0;0;0;1;0;0;1;1
;1;1;1;0;0;0;0;0;0;0;1;1;0;1;0;0;1;0;0;0;0;0;0;
0;0;0;1;-1;-1;20;1;0;0;1;1;0;1;0;-1;-1;0;0;1;0;0;
2;0;80;80;40;0;1;1;1;1;1;0;0;0;0;0;0;0;60;40;1;0
;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;80;40;40;30;0;0;0;0;
1;1;0;1;0;0;0

*edit2* Although... I have no idea what the "script: config" does (as mentioned in the X3 editor 2. As job scripts don't use arguments
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Ok, found it.

Now I cant remember how to unpack a pck :oops:
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

winrar + rename to .xml
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Odd, winrar didnt do it. Must be a setting I'm not using.

I did just get modmanager to do it for me though.

Thanks anyway.


Edit :

That gave me the movement scripts, but not anything about creating the ships themselves. The scripts seem to assume the ship already exists.

I guess I could modify that to load guns if its my ship type.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

YES ! *punches air in sheer delight*

I had a "I wonder what this is ?" moment followed by an "aha" moment.

In jobs.txt, there is a field called "Config script", which by default is 0.

If you type a script name into there, (eg bob), you then create a !config script of the same name (eg !config.bob) and it will then execute that script at the same time it creates the ship. Viola ! Added in the guns it wasnt adding before. And yes, they fire very nicely, including the turrents.

I love it when a plan comes together. :D
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

Hey I wondered what those scripts do. That is pretty neat :)
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

What I did was add a custom ship to the game, the Apricot Wanderer. It has the same script task as the Goners, but if attacked, it will defend itself, and the pilots fighting skill is high and the guns are lethal. These spawn randomly, but quite often, and go about their task of keeping the Nav maps up to date, an update of which is given to the player each time they start the game. Like the goner, they wander about all over the place for no apparent reason, and between them criss cross known space pretty regularly.

The hard part was giving them guns, but once I solved that, they really kick a*se ! :D

I watched one take out a good chunk of a Xenon sector before I stopped them spawning there. But if one wonders in there, the Xenon better watch out. They make no attempt to seek out enemies, but will turn and attack if attacked.

The biggest threat to them is colliding with too many ships :lol:

We at the Apricot Mapping Service just want to be left alone to get on with our mapping work, but if someone attacks, we are rigged to survive !
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Great work with lots of possibilities :)

LA
User avatar
Mr. Reeves
Posts: 615
Joined: Thu, 6. Sep 07, 04:30
x4

Post by Mr. Reeves »

ok trying to track down the Observes editor to add battlestars on patrols but cant find it to download it. somebody tell me where to look. I wish the forums came with a search bar. I had to use google to find this.
The skunk really is a bare bones model. It doesn't even have a GPS to highlight the way. Or targeting software MK 2 to allow target selection and painting from the sector map. It lacks a Trading System Extention to show prices in the sector you are in. The lack of satellites in rebirth is also annoying to the trader/pirate looking for a mark.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

It is on my download site, and it is listed in the main download sticky at the top of this forum, in the tools section.

Edit : Ok, good point, its not in the sticky thread.

Edit2 : I've asked why not in the submissions thread. All the main tools should be listed there imo.

Edit3 : Tutorials and Resources sticky.
User avatar
Mr. Reeves
Posts: 615
Joined: Thu, 6. Sep 07, 04:30
x4

Post by Mr. Reeves »

You mean your superbox submissions... well I went and downloaded them. And opened Apricotslice Superbox\X3TC Mods-Scripts\ I know I am looking for the file X3TC-Observe-Jobs-Editor-jobs_105 or Observes editor. And I would love to download it if it were here or in your superbox submissions so I could get the ball rolling on my plans to eventually cap a battlestar and set up patrols for them. However much longer will I have to chase this file... X3TC-Observe-Jobs-Editor-jobs_105 or Observes editor

Im not sure what imo means. :?

Parent Directory
.ftpquota
0Donations-Welcome.html
0Submission-Guidelines.html
244wMarketplaceBanner.jpg
Apricotslice-Superbox-Submission.ZIP
SectorTakeover.ClaimSector.xml
Squiddy McSquids possibly short life.rar
X3-Handbook-v5-bookmarked.zip
X3-Handbook-v5.zip
X3R-Nividium-harvest-debris-v1.spk
X3R-Nividium.debris.harvestor.v2.01.spk
X3R-Show-all-sectors.ZIP
X3R_WDog_SurveySectorsALPlugin_v1.spk
X3TC-AlfieUK-SquiddyTXT.zip
X3TC-Apricot-AMS-Mod-v2.14-HQ-Fix.zip
X3TC-Apricot-AMS-Mod-v2.14.zip
X3TC-Apricot-AMS-mod-loadscr.jpg
X3TC-Apricot-Add-Deca-to-shipyard.spk
X3TC-Apricot-Beamdock-v1.spk
X3TC-Apricot-Cbeam-v2.spk
X3TC-Apricot-Change-Hub-Name.zip
X3TC-Apricot-Claim-Sector.zip
X3TC-Apricot-Claim-v1.spk
X3TC-Apricot-Create-Abandonned-Ship.spk
X3TC-Apricot-Extended-PHQ-Patch-v4.zip
X3TC-Apricot-HUB-Plot-Hard-v4.1.zip
X3TC-Apricot-HUB-Plot-Hard-v4.zip
X3TC-Apricot-HUB-Plot-Medium-v4.1.zip
X3TC-Apricot-HUB-Plot-Medium-v4.zip
X3TC-Apricot-HUB-Plot-Very-Easy-v4.1.zip
X3TC-Apricot-HUB-Plot-Very-Easy-v4.zip
X3TC-Apricot-Jump-to-Derelict-v1.spk
X3TC-Apricot-Merge-Mod-v2.07-HQ-Fix.zip
X3TC-Apricot-Merge-Mod-v2.07.zip
X3TC-Apricot-PHQ-Fix.zip
X3TC-Apricot-PHQ-MO-in Boron-Shipyards.spk
X3TC-Apricot-STUT-most-ships-v1.spk
X3TC-Apricot-Salvage-Pack-v2.4.spk
X3TC-Apricot-Salvage-Pack.zip
X3TC-Apricot-Tree-SuperHub-v1-02.zip
X3TC-Apricot-Tree-SuperHub-v2-02-Xenon-Incursion-for-Merge-Mod-addon.zip
X3TC-Apricot-Tree-SuperHub-v2-02-Xenon-Incursion.zip
X3TC-Apricot-Tree-SuperHub-v2-02.zip
X3TC-Apricot-original-loadscr.zip
X3TC-Apricot-show-all-sectors.zip
X3TC-BugMeister-Keyboard-Layout.xls
X3TC-Cycrow-CheatCollectionPackage-V1.60-15.10.2009.spk
X3TC-Cycrow-CheatCollectionPackage-V1.60-15.10.2009.zip
X3TC-Cycrow-CommunityPluginConfiguration-V1.10-28.10.2008.spk
X3TC-Cycrow-PluginManager_Setup.exe
X3TC-DS-DevIL_for_X3E_install.exe
X3TC-DS-VBRuntime_install.exe
X3TC-DS-X2E_runtime2_install.exe
X3TC-DS_Editor_0.0.24_install.exe
X3TC-DS_ModManager_0.0.8_install.exe
X3TC-Dillpickle-All_Plots_Complete_1.3-player-aged.zip
X3TC-Dillpickle-All_Plots_Complete_1.5.zip
X3TC-Dillpickle-Plots_Complete_1.3-immediate-effect.zip
X3TC-Fud-TBackgrounds-NoFogNebulaMod.rar
X3TC-Gazz-Complex-Cleaner-4.06.zip
X3TC-Graxster-Mobile_Ship_Repairs_v1.5_Script_Version.spk
X3TC-Logain Abler-Complete-LIModv7-FDNv7-PMv7-SSDNv5.zip
X3TC-Logain Abler-FDN-V7.1.spk
X3TC-Logain Abler-FDN-V7.1.zip
X3TC-Logain Abler-FDN-V7.spk
X3TC-Logain Abler-Freight-Distribution-Network-FDN v1d.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv2.1.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv2.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv3.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv4 scripts only.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv4.02.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv4.03-scripts-update-only.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv4.04-New-models.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv4.04-scripts-update-only.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv5-scripts-update-only.zip
X3TC-Logain Abler-Freight-Distribution-Network-FDNv6-scripts-update-only.zip
X3TC-Logain Abler-Global-Production-Report-GPRv2.zip
X3TC-Logain Abler-PM-V7.2.spk
X3TC-Logain Abler-PM-V7.2.zip
X3TC-Logain Abler-Production Modules-PMv6.zip
X3TC-Logain Abler-SSDN-V5-for- LI_Modv7.spk
X3TC-Logain Abler-Strategic-Sector-Defense-Network-SSDNv3.zip
X3TC-Logain Abler-Strategic-Sector-Defense-Network-SSDNv5.zip
X3TC-Logain Abler-Unified Menu-UMv2.zip
X3TC-Snowship-Vanilla-Malt-Gamestarts-1.0.zip
X3TC-WeaponSwitcher-X3TC-1.0.zip
X3TC-add.satellites.to.every.sector.rar
X3TC-argon_emperor-500km_comm_range.zip
X3TC-cheat.reset.hull.shields.rar
X3TC-cheat.scan.all.asteroids.rar
X3TC-klaatu-CargoDeliveryService-V2.01.spk
X3TC-klaatu-CargoDeliveryService-V2.02.spk
X3TC-pmenso57-pm-list-blueprints.zip
X3TC-vanilla-Hub-plot.zip
X3TC-ya-map-legendv1.1.jpg
X3TC-ya-map-v1.1.jpg
X3TC_WDog_SurveySectorsALPlugin_v1.1.spk
apricot-appeal-button.jpg
blueSpacer.gif
common.css
gaidienkaid-08.zip
image006.jpg
image038.gif
setup.apricot.ships.in.shipyards.xml
start.xml
start.zip
voda-qk2.gif
x3banner.jpg
Apache/2.2.15 (Unix) mod_

however I have determined that it is not here or in your superbox submissions
The skunk really is a bare bones model. It doesn't even have a GPS to highlight the way. Or targeting software MK 2 to allow target selection and painting from the sector map. It lacks a Trading System Extention to show prices in the sector you are in. The lack of satellites in rebirth is also annoying to the trader/pirate looking for a mark.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Doh !

It wasnt either. My computer directory had it, but I obviously never uploaded it.

Its there now.

Sorry. :oops:
User avatar
Mr. Reeves
Posts: 615
Joined: Thu, 6. Sep 07, 04:30
x4

Post by Mr. Reeves »

it had two setups. I ran the bigger one because I guessed it must be better since it has more code at 486 KB. This is what it feels like not having the directions to make a new spawned ship... (battlestar spawning with Flack Artilary Array, MARS "random # of 2 GJ shields auxillary weopons" and Photon Pulse Cannons) run a patrol from "random sector" with "random # of fully equipped Mark 2 and 4 fighters and raptors" with orders to "protect ship" their turrents set to "missle defence" to nearest xenon sector.... :headbang: I just realized that with my only slightly above average intellect I just took on script writing. At least I'll be able to give Killerog something he can put in his ship pack. My brother is a Computer Programmer major so maybe if I'm really nice he will help me figure it out if I can at least pretend to know how to use the program.

Is there a PDF with all the instuctions written down? It looks like I found something to do for the next few days. Something as vauge as the factory X2 manual will do. I know from experiance if it's enough to grasp how to use it and what said control does i can figure out the whole program a piece at a time.

I also thought I could just downlad the full conversion and move the files that make the ships fly around the universe into the X3 directory. Would that work? How would I know which files to move? I don't want to break the plot. I actually like the plot.

respectfully, Reeves
The skunk really is a bare bones model. It doesn't even have a GPS to highlight the way. Or targeting software MK 2 to allow target selection and painting from the sector map. It lacks a Trading System Extention to show prices in the sector you are in. The lack of satellites in rebirth is also annoying to the trader/pirate looking for a mark.

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”