[MOD] Player HQ Hack

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

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

kipstafoo
Posts: 86
Joined: Fri, 7. Nov 08, 00:08
x3tc

Re: Production time

Post by kipstafoo »

LarryBurstyn wrote:I was playing around with mod manager and found something interesting.

In hq.pck you have several values.
Production
Repair
Reverse Engineer
Recycle

They all have Time, Resources, and money settings at 100, 0, or some other number. the number is PERCENTAGE. For example in production time is 100, money is 100 and resources is 100. Changing time to 50 halves the build time for EVERY thing the HQ builds. Same is true for the other factors. These factors go into effect the next time you restart the game so you do NOT have to restart from scratch every time you change one of the these factors.

MAKE SURE YOU COPY THE ORIGINAL 03.CAT and 03.DAT files somewhere safe so you can put them back if your mods break something.
Have you seen changes actually happen when altering the time/resource/money settings on a PHQ that is already created?

I have a PHQ repairing my Ares and it says it's going to take 1-2:35... judging by hoq quickly the last number tics down, I'm taking it to be 1 (day?/week?) 2 hours 35 minutes. No matter what i alter that time doesn't increase or decrease.
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

That's because any changes to the hq file won't affect an existing one in game.

It will only alter a new one.

There are two ways to get one:

1. Use the method above with the cheats and add it to a TL/build it.
2. Make a script that offers them for sale in a shipyard.


An alternate way to install the modified hq.xml is to put it in your X3 Terran conflict folder, in a subfolder named "types" (\x3 terran conflict\types".

This way, you don't have to worry about screwing up the original Ego cat file, which will result in the necessity of reinstalling the game.
kipstafoo
Posts: 86
Joined: Fri, 7. Nov 08, 00:08
x3tc

Post by kipstafoo »

Well that's unfortunate. :| So the cargo size will take effect after it is built but nothing else will, eh?

Anyway known way to stop a ship from being repaired? I'd like my Ares back. :)
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

No, if you change the production numbers/etc, that should change as well, but only for a new HQ.


Nothing will change on an existing one.
kipstafoo
Posts: 86
Joined: Fri, 7. Nov 08, 00:08
x3tc

Post by kipstafoo »

Cargo capacity of the HQ does change for existing ones
User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster »

kipstafoo wrote:Well that's unfortunate. :| So the cargo size will take effect after it is built but nothing else will, eh?

Anyway known way to stop a ship from being repaired? I'd like my Ares back. :)
Ya... I'd just use Cycrow's cheat package to make a new one and install all the same equipment. I've even shot ships with lasers to approximate the damage on the one I had to scrap. Then use the cheats to destroy HQ, create a Mammoth, load a HQ onto it, and build a new one. Destroy Mammoth (assuming you don't already have a TL), and you're back where you were.

-Grax
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

kipstafoo wrote:Cargo capacity of the HQ does change for existing ones
Ah, that's changed since Reunion then. Good to know.
LarryBurstyn
Posts: 295
Joined: Sat, 19. Nov 05, 19:26
x4

Percentages

Post by LarryBurstyn »

IN my game changes to the percentages and cargo capacity of the HQ take effect on existing saves but will not change something already started. If you start a new build or repair or scrap after you have changed the numbers they will effect already built HQ but will not change the percentages of something started before you changed the HQ file.

A already started repair or build will not be changed but any new will change even in already existing HQ's. I thought it stupid that a repair should take the same time as a build so I changed the time to 80% of the time a build should take. The repairs after that at my already existing HQ took 80% of the time they took before the change.

Scrapping takes 5% of the time, returns 80% of the materials, and 0% of the credits that a build uses. You can change these and get some credits back also.
Malkuth74
Posts: 295
Joined: Fri, 31. Dec 04, 19:31
x3tc

Post by Malkuth74 »

Been messing with this file now after reading this thread. Because I always thought that the build times for HQ was insane for my taste and some of the requirments.

What I have found.

The 100 Value is indeed a %.. Most of your editing can be done from this area. IE lowering Production time is what I wanted... And I downplayed the credit cost (why should you be paying massive credits when you have to buy the Wares to build the stuff)

I also found that yeah you can lower the Factor value to -1 but this messes everything up... I have found that it messing things so up that making the value on one product -1 just one makes the ship be built for free.

What I wanted was to get rid of a few. Like cloth rimes, and nostrop oil etc. So I made the Factor 0 on these products.. Only changed this.

Went in game and low and behold no more cloth rimes, Nostrop oil, or crystals.

To replace these I changed the ore value from 23330 to 17000 which increases the amount needed to build products.

Now I have my HQ where I like it and think its a reasonable hack to work with.

I downed the Product Build time to 25% And I think it takes 16 mins to build the buster now. Takes 5 hours to build an agamamon M7M.

Don't delete the lines for the items needed to build item. This does nothing and actually does strange things.

Good luck..
Raven52
Posts: 12
Joined: Fri, 28. Nov 08, 04:13
x3tc

Post by Raven52 »

Hi Graxster: :) was wondering am waiting for the new patch for TC before playing it again, is there a version of this for X3 Reunion?. Would love to use it With the XTM mod.
Pull the grenade throw the pin .... OH BUGGER this is gonna hurt.
User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster »

Just use this file for X3:R. The HQ hasn't changed.

-Grax
Raven52
Posts: 12
Joined: Fri, 28. Nov 08, 04:13
x3tc

Post by Raven52 »

Graxster wrote:Just use this file for X3:R. The HQ hasn't changed.

-Grax
Thanks trying it now
Pull the grenade throw the pin .... OH BUGGER this is gonna hurt.
Raven52
Posts: 12
Joined: Fri, 28. Nov 08, 04:13
x3tc

Post by Raven52 »

Hey grax:
installed your hack on reunion like you said, no go HQ now showing no products no build options or reverse engeneering options basically just big empty station :( . tried installing again, nope, completly removed it & the plugin manager & attached files, reinstalled, nope, :cry: tried buying and unpacking from TL, nope, create station, nope, is this compatable with the XTM mod? realy need it as im currently in a war of extermination agianst all commers (all races) just to make it interresting :lol: and the combat wear is starting to get really noticable. I know I could just us the Create ship cheat but in this war im trying for at least some realism :wink:
would any of these mod/scripts clash?
deltawolf= auto upgrade
Azz=pilotelA lll
arch2,desert eagle and nirwin= sector take over2.4.3
cycrow=BBS extras,bounty hunters guild,unlimited salvage insurance***
gazz=ring of fire
LV=deathmatch Arena Redux 1.3,heavy assault technology, player responce fleets***** (dma outstanding)
moot=BBS project2
ulfius=CMODll for XTM 0.7.4+, crew chatter ambient plugin,military HUD MKll plugin,XTM no civilians plugin *****
various=Terracorps Fleet pakage *****
voxol=player friendly EQ's,player friendly shipyards (expensive)
Ships
hawkbs=battlestar galactica BSG 75,Colonial raptor,colonial viper MKVll, Cylon raiderMK2 (BSG is Major MO+)
Balogt/Crycrow, edited by cronos=Radiance (unknown havn't tried yet)
I know BIG ask but together this lot just Rocks, brand new game for just a few downloads the bugs in TC almost made me look Outside of X3but this stuff is well worth every hour spent swearing t the screen :lol:
BTW the ***** above is for major kudos they really make for a whole new X3 experience :D
Pull the grenade throw the pin .... OH BUGGER this is gonna hurt.
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

HQ hacks on existing HQs in Reunion will have issues, IE, they won't work.

That said, using the cheat to create an HQ in Reunion, it won't work right.

I never had any luck with the "add station to TL" cheat either in testing.

About the only way I got an HQ to work with an edit, was to add one to a shipyard and buy it.

But existing HQs in R react differently (DON'T react, in fact) to HQ.pck/xml changes than they do in TC.


There shouldn;t be any conflicts with any scripts/mods, unless they alter types\hq.pck.
Raven52
Posts: 12
Joined: Fri, 28. Nov 08, 04:13
x3tc

Post by Raven52 »

Thanks for the info fud, at least I know tht I didn't stick it in and break it off now :wink:
Pull the grenade throw the pin .... OH BUGGER this is gonna hurt.
esamimbias
Posts: 12
Joined: Fri, 26. Dec 08, 15:05

Post by esamimbias »

Another fine and "more legit" way to own a PHQ is to buy it (190 M) using Teladidrone's Marauder Script

--
Esa Mimbias
DarkSonic28
Posts: 4
Joined: Fri, 2. Jan 09, 08:35
x4

Post by DarkSonic28 »

Um one thing..i haven't use the Cheat pack to get my HQ..and i have also tried both ways using the Normal buy it and build it..AND create it inside the Mammoth..however i still get the production stuck
halp?
954flyer
Posts: 329
Joined: Wed, 9. Nov 05, 20:24
x3

Post by 954flyer »

An alternate way to install the modified hq.xml is to put it in your X3 Terran conflict folder, in a subfolder named "types" (\x3 terran conflict\types".
Someone please confirm that my thinking is correct:

I can unpack 03.cat, find hq.pck, modify the values, and simply place the modified hq.xml in a subfolder named types? I wouldn't have to create or select a new mod since this subfolder is read first before the original cat file?
User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster »

954flyer wrote:
An alternate way to install the modified hq.xml is to put it in your X3 Terran conflict folder, in a subfolder named "types" (\x3 terran conflict\types".
Someone please confirm that my thinking is correct:

I can unpack 03.cat, find hq.pck, modify the values, and simply place the modified hq.xml in a subfolder named types? I wouldn't have to create or select a new mod since this subfolder is read first before the original cat file?
Actually, it's read last, not first, but yes, that would work. The first thing the game does is read the .cats, starting at the lowest number and working upward. Each time it encounters a duplicate file name, it overwrites the older one (in memory). Then it reads the active mod and any other subfolders last, so by placing hq.xml in a subfolder named \types, you guarantee that is the one being used, not the one in 03.cat.

-Grax
Maliki
Posts: 127
Joined: Fri, 29. Apr 05, 00:42
x3tc

Post by Maliki »

How do I impliment this hack into my game please?

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