Help With Adding A ship

The place to discuss scripting and game modifications for X Rebirth.

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

Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Help With Adding A ship

Post by Reaperxvii »

Found another issue I can't seem to pin point

The ship won't pull from my wares.xml (but if I take it out of the wares file its says 0cr :?) It shows the default amount of credits when you purchase it but in the unit info tab it shows the correct cost

anyways heres the files http://www.mediafire.com/download/xvdi7 ... d8c/rsp.7z

** See told you I'd mess up again evans ;) ** :lol:

What the heck did I miss? I'm sure its something super simple
Last edited by Reaperxvii on Fri, 5. Feb 16, 17:19, edited 5 times in total.
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
Clownmug
Posts: 419
Joined: Wed, 11. Dec 13, 02:39
x4

Post by Clownmug »

You have "size_l" in the path name rather than "size_xl".
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

Clownmug wrote:You have "size_l" in the path name rather than "size_xl".
Yeah martin and I were just talking about it, I had a derp moment :lol:

thanks guys :)
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

Hey, no fair! I didn't get to make any snarky comments about what the problem was!

Glad you sorted it out.
pref
Posts: 5625
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref »

He still has 1 more star on the left, so there is place for improvement!!
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

Alright I've messed up something again lol, any ideas what I've done?
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
User avatar
Marvin Martian
Posts: 3617
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian »

your error says
units_size_l_carrier_02_rsp_macro but your file is called
units_size_l_kit_carrier_02_rsp_macro
is that's the ship you searching for?

and about your Shipyard
index entry name
units_size_xl_cs_omicron_rsp_01_macro
units_size_xl_cs_omicron_ship_01_rsp_macro <-buildship macro

looks diffrent to me too :roll:
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

:oops: one day I'll stop making super simple errors, but today is not that day lol, thank you once again marvin:)

Also it's supposed to be kit_carrier, I'm trying to find which file still shows just carrier_rsp

**edit**

nevermind, found the issue in the patch.xml, thanks again marvin:)
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
User avatar
Marvin Martian
Posts: 3617
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian »

i think you use notepad++

here you could use the highlight feature in case something went wrong

copy all code on one page and select the string you know it is right, then all others should highlight
will be helpfull that day you start coding with $vars and $var ;)
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

Marvin Martian wrote:i think you use notepad++

here you could use the highlight feature in case something went wrong

copy all code on one page and select the string you know it is right, then all others should highlight
will be helpfull that day you start coding with $vars and $var ;)
I honestly never thought about doing that, thanks for the tip!
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

So I have no idea why this ship is being such a pain, but now Its not pulling from my wares.xml (its using the default one) I'm 99.9% sure I have everything pathed right but obviously I don't, any ideas?

Code: Select all

<ware id="shp_xl_cs_omicron_rsp_01" name="{20101,13701}" description="{20101,13702}" transport="ship" size="ship" volume="1" tags="ship">
    <price min="30343053" average="37124070" max="43905088" />
    <production time="942" amount="1" method="default" name="{20206,101}">
      <primary>
        <ware ware="bioelectricneurongel" amount="234" />
        <ware ware="bofu" amount="290" />
        <ware ware="emspectrometer" amount="168" />
        <ware ware="energycells" amount="1380" />
        <ware ware="fusionreactor" amount="76" />
        <ware ware="holtzmanfieldgenerator" amount="114" />
        <ware ware="plasmaflowregulator" amount="92" />
        <ware ware="plasmapumps" amount="228" />
        <ware ware="reinforcedmetalplating" amount="242" />
      </primary>
    </production>
    <component ref="units_size_xl_cs_omicron_rsp_01_macro" amount="1" />
   <icon video="units_size_xl_cs_omicron_rsp_01_macro" />
  </ware>
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
User avatar
Marvin Martian
Posts: 3617
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian »

i can't see a obviously mistake, you should update the package in the first post
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

Marvin Martian wrote:i can't see a obviously mistake, you should update the package in the first post

Just updated the package now (and I'm still clueless as to what exactly is wrong with it, it seems to be right)
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

If the errors from the first post are relevant : did you add the full path of your ship macro into the index/macros.xml ? (including extensions/your extension)

Same for the component file if you use your own one
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
Reaperxvii
Posts: 357
Joined: Thu, 29. May 14, 19:03
x3ap

Post by Reaperxvii »

UniTrader wrote:If the errors from the first post are relevant : did you add the full path of your ship macro into the index/macros.xml ? (including extensions/your extension)

Same for the component file if you use your own one
I got that error fixed :) (it was using an older file path) but I'm still unsure as to why its defaulting to the original wares.xml instead of the price I have set (the price shows up in the Units info tab but if you build it it shows the default amount and costs that)
"We are the middle children of History. Born too late to explore the earth, born to early to explore the stars."

"Time is the fire in which we burn"

Reaper's Mod Index
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

I seem to remember the actual price for ship construction resulting from the resources that you put in. I think the number you put in the "price" node is irrelevant in that regard.

Return to “X Rebirth - Scripts and Modding”