[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

D31m0s
Posts: 16
Joined: Mon, 13. Feb 12, 11:13

Post by D31m0s »

could you script that also for x3R users (like me =)?
TFO Bloodlust
Posts: 10
Joined: Sat, 21. Aug 04, 06:29
x4

Post by TFO Bloodlust »

Has anyone gotten this to work with Albion Prelude 2.0? I tried to make my own with little sucess. Any tips would be welcome. BTW: The file has new entries in it with new values and im not sure how it all comes togeather. I did attempt to duplicate the "factor Values" and "Primary values" but did not work right. Please any help would be appreciated. :)

Code: Select all

<?xml version="1.0" encoding="iso-8859-1" ?>
<headquarters>
  <upgrades>
    <upgrade index="0" typename="SS_DOCK_P_HQ" storage="500000">
      <blueprints>
        <blueprint typename="SS_SH_A_M4" />
      </blueprints>
      <production time="100" money="100" resources="100">
        <factor class="ship" value="1" />
      </production>
      <repair time="100" money="100" resources="100">
        <factor class="ship" value="2" />
        <factor class="hq" value="2" />
      </repair>
      <reverse time="100" money="0" resources="0">
        <factor class="ship" value="1" />
      </reverse>
      <recycle time="5" money="0" resources="80">
        <factor class="ship" value="1" />
      </recycle>
    </upgrade>
  </upgrades>
  <resources>
    <!-- Time (uses the SETA upgrade as the typename!) -->
    <resource typename="SS_WARE_TECH231">
      <factor class="m5" value="10000" primary="1" />
      <factor class="m4" value="12500" primary="1" />
      <factor class="m3" value="16666" primary="1" />
      <factor class="gonership" value="16666" primary="1" />
      <factor class="freighter" value="5000" primary="1" />
      <factor class="bigship" value="25000" primary="1" />
      <factor class="hq" value="25000" primary="1" />
    </resource>
    <!-- Money -->
    <resource typename="SS_WARE_CREDITS">
      <factor value="3" primary="1"/>
    </resource>
    <!-- Energy Cells -->
    <resource typename="SS_WARE_ENERGY">
      <factor value="885" primary="1" />
    </resource>
    <!-- Ore -->
    <resource typename="SS_WARE_ORE">
      <factor value="21250" primary="1" />
    </resource>
    <!-- Silicon -->
    <resource typename="SS_WARE_SILICON">
      <factor value="28333" primary="1" />
    </resource>
    <!-- Nividium -->
    <resource typename="SS_WARE_NIVIDIUM2">
      <factor racemask="khaak" value="170000" primary="1" />
    </resource>
    <!-- Cloth Rimes -->
    <resource typename="SS_WARE_F217">
      <factor value="85000" />
    </resource>
    <!-- Rastar Oil -->
    <resource typename="SS_WARE_F238" >
      <factor value="42500" />
    </resource>
    <!-- Teladianium -->
    <resource typename="SS_WARE_R255">
      <factor value="28333" primary="1" />
    </resource>
    <!-- Crystals -->
    <resource typename="SS_WARE_TECH205">
      <factor value="85000" primary="1" />
    </resource>
    <!-- Quantum Tubes -->
    <resource typename="SS_WARE_TECH206">
      <factor value="85000" />
    </resource>
    <!-- Microchips -->
    <resource typename="SS_WARE_TECH207">
      <factor value="42500" />
    </resource>
    <!-- Computer Components -->
    <resource typename="SS_WARE_TECH208">
      <factor value="85000" />
    </resource>
  </resources>
</headquarters>
khadgarion
Posts: 19
Joined: Tue, 14. Aug 12, 21:40
x3ap

Post by khadgarion »

I modified my own hq.xml file and it does work with production times in AP.

I was a little pissed off at how the Aamon Prototype took 10 times the amount of time to produce. The #deca.cefa I have takes 40 minutes to produce, and the Aamon takes 4 hours and 50 minutes!!!

I edited the production time to 25% of the normal time, and the numbers changes accordingly. My only issue is I need to find out where the individual times / resources required are stored, because the amount of resources required to produce the Aamon Prototype is ridiculous... roughly 10 times the amount of other M3's.

Yes, I understand it's a "special" prototype, but damn! That ship would weigh so much it couldn't move with all those materials. I could understand 2x the resources, or even 3x.... But 10? Really?

I'll post again if I can find the location of the individual ship costs.

Khad
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

khadgarion wrote:if I can find the location of the individual ship costs.
PHQ Re-engineering time and resources are based on Production rel. value (NPC) in TShips.


Checking Your Math:
  • - 4:50 / 0:40 = 7.25x (not 10x)

    - Comparing to a #deca.cefa is an extreme case because #deca.cefa costs almost nothing at all. Most other M3's take more than 1.5 hours to re-engineer. That puts the Aamon Prototype squarely into 2x - 3x time (which you already said is reasonable).



For more information, see:
Last edited by DrBullwinkle on Fri, 17. Aug 12, 06:37, edited 1 time in total.
khadgarion
Posts: 19
Joined: Tue, 14. Aug 12, 21:40
x3ap

Post by khadgarion »

Thanks for the links, I will check them out.

As for checking my math... All I did was a quick mental calculation, and ballparked it. Your calculations would be correct using a floating point number; Calculating minutes and seconds is different, because 1 minute does not equal 100 seconds.

4:50 = 4 x 60 + 50 = 290
0:50 = 50 = 50
290 / 50 = 5.8x (not 7.25x)

Neither one of us were correct, and my ballparking is even worse than I thought ;)

As for ship resources, I will probably only modify the player HQ xml file, as trying to edit the TShips file would not allow me to use another mod that changed the file already.
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

LOL

Man, neither of us can do this right!

It's 4:50 / 40 , which does equal 7.25. :)

Apparently I typed a 5 instead of a 4.

Oh, well.... yeah, that's the problem with changing ship values. And, as we (probably) demonstrated, you don't need to change the relval for the Aamon anyway -- it is about "right" as it is.
User avatar
TheCoolSideofthePillow
Posts: 243
Joined: Wed, 22. Sep 10, 10:27

Post by TheCoolSideofthePillow »

Would using this or editing my own HQ.xml require starting a new game?

I edited all the time factors to be the same as the recycle time, but nothing has changed in my current game. I am not sure if it's not working because I did something wrong, or if it requires a new game be started.
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

It does not require a new game start, but it might require a new PHQ.

Tip: In order to create a PHQ that works, you must create the station inside the cargo hold of a TL, then deploy the PHQ from the TL.
Last edited by DrBullwinkle on Fri, 19. Apr 13, 06:19, edited 1 time in total.
User avatar
RoverTX
Posts: 1466
Joined: Wed, 16. Nov 11, 18:37
x4

Post by RoverTX »

While it wouldn't require a new game, it would require a new PHQ. You could script in a new PHQ, move all the products and then script in all the related Blueprints, and then blow up your old one.

Edit: And the Dr Beat me too it, and JINX. You owe me a coke.
User avatar
TheCoolSideofthePillow
Posts: 243
Joined: Wed, 22. Sep 10, 10:27

Post by TheCoolSideofthePillow »

DrBullwinkle wrote:It does not require a new game start, but it might require a new PHQ.

Tip: In order to create a PHQ that works, you must create the station inside the cargo hold of a TL, then deploy the PHQ from the TL.
I already know about the second point :)

I will try building a new one. Hopefully it works.

EDIT: Nope. Didn't work. :(

Oh, and while I am at it: I can't remember how to make my headuarters *buy* goods. I don't know if this is just something removed from AP, it was something I had from a mod, or if I just haven't played in so long I completely forgot, but I do recall being able to set my headquarters to BUY the resources it needs to build a ship rather than SELL them in TC. Any clues how to get my HQ to buy it's resources in AP?

EDIT 2: I finally got the station hack to work correctly. I made it an SPK file for those looking for faster production times (2 minutes max on the biggest ships) and without the credit cost. It will still cost resources, however.

http://www.mediafire.com/?5e4v1077mocnh3s
Ewahyu01@gmail.com
Posts: 3
Joined: Sat, 11. Jan 20, 23:23

Re: [MOD] Player HQ Hack

Post by Ewahyu01@gmail.com »

Hi There,

is there any chance this mod work for AP? i tried using it for AP but it doesn't work
Anyone have this for AP?

By the way i tried to open the package of this mod to a notepad but it always shown a chinese/japan word and i dont understand at all

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