Adding Models to Positions along Highway Path

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

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

clickpop
Posts: 1
Joined: Sat, 18. Oct 14, 05:12

Adding Models to Positions along Highway Path

Post by clickpop »

Howdy everyone,

I've been playing around with modding the game and have managed to get new models in and modified no problem, but I'm having a problem I could use some help with. My goal is to create a series of gates along the path of a highway tube and I can't seem to associate a prop macro with either spline points or at set intervals along the path.

I'd really appreciate any help. Thanks and happy modding!
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

We want to create an xml macro that will retrieve the entrypoint, splinepositions and exitpoint data from zonehighways.xml to automatically load a mesh/prop repeatedly along the path that's created by zonehighways.xml.

And, would this macro be able to be separate or would it have to be added to zones.xml?

Were hoping we don't have to manually assign locations.

Thanks guys.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

just got an idea regarding this:

look into how the Adsigns for the Local Tubes are defined - they are in every Zone but for some reason they are not defined in the Zone at all.. i know this may be far away from your eventual goal because its probably only one per Zone, but its a beginning ;)
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 ;)
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

Thanks.

I was hoping it would be as easy the equivalent of saying load mesh if highway local at spine points.
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

I looked into it and I have no idea what is calling the Adsigns to exist. In highway configeration, it basically says they exist, but doesn't talk about where or how. Very weird.
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

Just a thought as I know very little about the zone files : are the ad signs connected to a central or anchor connection for the spline itself in the zone? The auto pilots 0km leave highway is usually pretty close to these signs.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

YorrickVander wrote:Just a thought as I know very little about the zone files : are the ad signs connected to a central or anchor connection for the spline itself in the zone? The auto pilots 0km leave highway is usually pretty close to these signs.
its the first splineposition in the Zone it seems, but i checked only two.. maybe its the most central 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 ;)
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

Any clue what file is calling for the adsign to exist?
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

just looked into it:

libraries/highwayconfigurations.xml ->
//tubeconfiguration/@adsignmacroname

i would guess in this file there is more possible than what is said in there, because of the
<!--
For documentation please refer to the TDD.
-->
at the Top, but i couldnt find such a file (my guess is it means a dtd which is not included in the Game files)
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 ;)
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

DTD what's that?

Do you think it would be possible to take all the splinepoints and place the coordinates on a path in 3Ds Max. Then use 3Ds Max copy tools, to create the objects along the path and then grab the data of the coordinates and put them back into the game?
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

DTD = Document Type Definition, basically a file which describes what is allowed to do in an xml file.

for the Splinepositions:
no idea if loading them in max or something is possible with arc_'s tool, but since they are defined in an xml file and EGO doesnt use Rotations on Sector/Zone Level (opposed to me :D :P ) it should be comparetively easy to calculate Positions and Rotations for that on Sector Level and based on that distribute it to the Zones (afaik only Zones can contain Objects, you cannt set them on Sector Level, with some exceptions like Tubes)
but these splinepositions are not reallly good distributed - there are 4 per Zone/in a Zone and if you are lucky maybe one in-between.


Alternatively a Script which logs the Player Position relative to the nearest Zone would be feasible i think - Write every 3s the current Zone, Position & Rotation to a Logfile, fly slow through every tube with that and then set the Positions based on that (and if no Zone is available use the Sector Offset instead and generate Invisible Zones if necesary)
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 ;)
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

ok, i just scripted this, here the current resulting Logfile (some bugs still left, like handling cases where no Zone is found within 50km - therefore some null errors) - would something like this be useful for your purposes? or is it wasted time to improve this one? ^^


========= Logfile Output ================

Code: Select all

[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone24_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="940.401" y="-45.2021" z="-2605.935" /><rotation yaw="0.286126" pitch="0.0472745" roll="-0.0261849" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Player changed Zone to highway01sector05_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="1072.258" y="-34.851" z="-2049.797" /><rotation yaw="0.252826" pitch="0.0327316" roll="-0.032666" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="2686.098" y="-34.7969" z="8955.547" /><rotation yaw="0.115333" pitch="7.5449e-006" roll="-0.0172564" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="3552.582" y="-34.707" z="19257.297" /><rotation yaw="0.0507473" pitch="9.08254e-006" roll="-0.0228947" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="3661.34" y="-34.6223" z="30713.516" /><rotation yaw="-0.0343451" pitch="4.39311e-006" roll="-0.0299988" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="2570.836" y="-34.6511" z="43058.516" /><rotation yaw="-0.145392" pitch="-1.11268e-005" roll="-0.0387657" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-291.352" y="-38.8727" z="54668.828" /><rotation yaw="-0.46555" pitch="-0.00179775" roll="-0.161439" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-6076.016" y="-63.4479" z="62028.984" /><rotation yaw="-0.744593" pitch="-0.00235852" roll="0.0451668" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-13488.668" y="-71.513" z="72512.641" /><rotation yaw="-0.471571" pitch="0.000940784" roll="0.0993183" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-20576.695" y="-19.0363" z="93977.547" /><rotation yaw="-0.243738" pitch="0.00304843" roll="0.00264669" /></offset>
[General] ======================================
[=ERROR=] Error in AI script log.coordinates.in.tube on entity 0x4e422: Property lookup failed: $zone.macro
* $zone == null
* Expression: 'Coordinates now inside/relative to %s'.[$zone.macro]
[General] ======================================
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to null
[General] ======================================
[=ERROR=] Error in AI script log.coordinates.in.tube on entity 0x4e422: Evaluated value 'null' is not of type component
* Expression: $zone
[General] ======================================
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-24.5015" y="0.397427" z="103.237" /><rotation yaw="-0.232988" pitch="0.0037485" roll="0.00410577" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone21_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="15850.742" y="133.246" z="-97442.789" /><rotation yaw="-0.216423" pitch="0.00457723" roll="0.00622112" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="12975.486" y="211.999" z="-83681.352" /><rotation yaw="-0.191861" pitch="0.0054647" roll="0.00885401" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="11016.164" y="277.235" z="-72691.82" /><rotation yaw="-0.158521" pitch="0.00619251" roll="0.0109434" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="9719.591" y="335.96" z="-63510.133" /><rotation yaw="-0.121349" pitch="0.00634763" roll="0.0101561" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="8836.674" y="386.433" z="-55209.883" /><rotation yaw="-0.0929633" pitch="0.00559877" roll="0.00531683" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="8096.087" y="428.245" z="-46671.102" /><rotation yaw="-0.0836822" pitch="0.00411511" roll="-0.000834481" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="7242.216" y="460.202" z="-36886.836" /><rotation yaw="-0.0924708" pitch="0.00247041" roll="-0.00474524" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="6013.861" y="481.147" z="-24814.523" /><rotation yaw="-0.110385" pitch="0.00110133" roll="-0.00591371" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="4161.169" y="490.092" z="-9516.148" /><rotation yaw="-0.129728" pitch="0.000126517" roll="0.0272903" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="3466.301" y="489.909" z="-125.93" /><rotation yaw="-0.0185812" pitch="-1.12007e-005" roll="-0.00898826" /></offset>
********* Removed some irrelevant Output here (Reservation EXPIRED) *******
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="4037.39" y="434.762" z="9218.313" /><rotation yaw="0.20224" pitch="-0.019334" roll="0.0794651" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="8609.29" y="108.246" z="23109.938" /><rotation yaw="0.397088" pitch="-0.0186578" roll="0.0380075" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone20_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-43397.781" y="-70.9285" z="-88047.578" /><rotation yaw="0.499619" pitch="-0.00381921" roll="0.0246195" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone21_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="25622.395" y="-92.9694" z="54902.508" /><rotation yaw="0.566849" pitch="0.00113141" roll="0.0100062" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="33216.793" y="-57.5272" z="66653.344" /><rotation yaw="0.565151" pitch="0.00334967" roll="-0.0185317" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone20_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-21037.41" y="-27.3099" z="-51079.391" /><rotation yaw="0.459648" pitch="0.000602683" roll="-0.0545006" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-15857.84" y="-26.5267" z="-37993.859" /><rotation yaw="0.319814" pitch="-1.88246e-006" roll="-0.0243229" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-11411.852" y="-26.5459" z="-22796.438" /><rotation yaw="0.25479" pitch="-6.61777e-006" roll="-0.0152132" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-8202.203" y="-26.6943" z="-8857.359" /><rotation yaw="0.189617" pitch="-1.75683e-006" roll="-0.0280928" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-6123.66" y="-26.7888" z="6132.953" /><rotation yaw="0.0837397" pitch="-2.57966e-006" roll="-0.0351339" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-6628.219" y="-31.5008" z="17943.047" /><rotation yaw="-0.49858" pitch="-3.24711e-006" roll="-0.497069" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-15651.844" y="-26.6724" z="19224.281" /><rotation yaw="-1.63475" pitch="4.78599e-006" roll="-0.0301692" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-30931.066" y="-26.4984" z="17626.172" /><rotation yaw="-1.70094" pitch="-6.68998e-006" roll="-0.00479788" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone19_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="63621.328" y="-26.3401" z="15694.047" /><rotation yaw="-1.68314" pitch="2.55375e-006" roll="0.0214478" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="48920.098" y="-22.9284" z="14839.766" /><rotation yaw="-1.55987" pitch="0.000772944" roll="0.0317894" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="32001.297" y="-8.23096" z="15731.438" /><rotation yaw="-1.49076" pitch="0.000647058" roll="0.00791181" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="17444.949" y="-14.3119" z="16983.234" /><rotation yaw="-1.49223" pitch="-0.0024734" roll="-0.0201692" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="6611.324" y="-304.924" z="17471.875" /><rotation yaw="-1.71176" pitch="-0.184119" roll="-0.76163" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="3086.73" y="-467.996" z="12143.578" /><rotation yaw="-2.90732" pitch="0.0303944" roll="0.0143022" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="2713.215" y="-241.716" z="-2221.359" /><rotation yaw="2.87954" pitch="0.0153977" roll="-0.102846" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="8240.938" y="-44.0903" z="-16377.984" /><rotation yaw="2.74266" pitch="0.00867079" roll="0.0407777" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="12749.16" y="-8.5134" z="-28576.5" /><rotation yaw="2.78955" pitch="-0.00216989" roll="-0.0372665" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="20560.844" y="-28.2706" z="-46302.891" /><rotation yaw="2.69187" pitch="-0.000474709" roll="-0.0134656" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone21_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-19934.607" y="-47.4985" z="65453.539" /><rotation yaw="2.65124" pitch="-0.00152649" roll="-0.00678738" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone19_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="35540.5" y="-64.1873" z="-75041.328" /><rotation yaw="2.65476" pitch="-0.000373454" roll="0.0156657" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone21_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-8495.002" y="-45.6546" z="43186.5" /><rotation yaw="2.73935" pitch="0.00401439" roll="0.0354679" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-4185.061" y="96.8102" z="30437.5" /><rotation yaw="2.88347" pitch="0.0172349" roll="0.0328717" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-850.839" y="391.582" z="14472.758" /><rotation yaw="2.98859" pitch="0.0160025" roll="0.0375414" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="144.038" y="490.967" z="1747.305" /><rotation yaw="-3.10387" pitch="2.16215e-006" roll="0.0257245" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-250.722" y="490.445" z="-5302.242" /><rotation yaw="-3.09899" pitch="8.93188e-006" roll="-0.0394478" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-361.344" y="479.244" z="-22908.945" /><rotation yaw="3.12937" pitch="-0.00144973" roll="-0.010539" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="163.081" y="439.797" z="-40663.211" /><rotation yaw="3.09474" pitch="-0.00296562" roll="-0.0100222" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="1225.136" y="379.189" z="-57436.883" /><rotation yaw="3.06203" pitch="-0.00421132" roll="-0.00939722" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="2732.825" y="304.4" z="-73280.555" /><rotation yaw="3.03153" pitch="-0.00514084" roll="-0.00864802" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="4588.023" y="222.833" z="-88161.648" /><rotation yaw="3.00374" pitch="-0.00569295" roll="-0.00775584" /></offset>
[General] ======================================
[=ERROR=] Error in AI script log.coordinates.in.tube on entity 0x4e422: Property lookup failed: $zone.macro
* $zone == null
* Expression: 'Coordinates now inside/relative to %s'.[$zone.macro]
[General] ======================================
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to null
[General] ======================================
[=ERROR=] Error in AI script log.coordinates.in.tube on entity 0x4e422: Evaluated value 'null' is not of type component
* Expression: $zone
[General] ======================================
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="18.6167" y="8.79969" z="-59.9268" /><rotation yaw="2.97917" pitch="-0.00579582" roll="-0.00668901" /></offset>
[General] ======================================
[=ERROR=] Error in AI script log.coordinates.in.tube on entity 0x4e422: Evaluated value 'null' is not of type component
* Expression: $zone
[General] ======================================
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="8.53558" y="9.17079" z="1.53149" /><rotation yaw="2.95839" pitch="-0.00535442" roll="-0.00539623" /></offset>
[General] ======================================
[=ERROR=] Error in AI script log.coordinates.in.tube on entity 0x4e422: Evaluated value 'null' is not of type component
* Expression: $zone
[General] ======================================
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="8.49356" y="9.18461" z="1.67545" /><rotation yaw="2.94233" pitch="-0.00424247" roll="-0.00380594" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone24_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-32212.965" y="-31.4647" z="93024.984" /><rotation yaw="2.87651" pitch="-0.00209872" roll="-0.071833" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-27325.902" y="-44.4486" z="80104.516" /><rotation yaw="2.71924" pitch="-0.000230447" roll="-0.0226155" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-20222.232" y="-41.2539" z="65433.328" /><rotation yaw="2.67478" pitch="0.000472477" roll="-0.00141877" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-12888.613" y="-31.5421" z="50705.609" /><rotation yaw="2.6956" pitch="0.000603389" roll="0.0192612" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-7341.621" y="-25.2" z="37673.016" /><rotation yaw="2.81063" pitch="8.71551e-005" roll="0.0490328" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-3775.031" y="-25.2564" z="24648.766" /><rotation yaw="2.92031" pitch="-1.12615e-006" roll="0.0246586" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-1443.723" y="-25.28" z="11857.609" /><rotation yaw="3.00773" pitch="-7.77982e-006" roll="0.02986" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-665.402" y="-25.2219" z="2369.203" /><rotation yaw="3.12886" pitch="-7.12559e-006" roll="0.0460668" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Player changed Zone to tzonecluster_b_sector05_zone24_macro
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-865.43" y="-25.6338" z="-2132.568" /><rotation yaw="-3.02663" pitch="-3.08114e-006" roll="-0" /></offset>
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: <offset><position x="-1021.827" y="-25.638" z="-3486.999" /><rotation yaw="-3.02663" pitch="-3.08114e-006" roll="-0" /></offset>
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 ;)
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

That actually might work faster. I started trying my method last night. It was very time consuming and rotating the camera just a little caused everything to disappear.

Unitrader, so I mapped out one single highway and I realized something I might not have thought about before. The splinepositions are actually not the positions you would fly through? Correct? The spline positions are as if you created a box, and the actual tube runs in a circle somewhere inbetween all the points? Or, did I just use the wrong type of Line curves in 3Ds Max?
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

So is that only giving coordinates while your in the highway? or, all the time?

I think for now the only option is to manually update the locations. If you could get it to only operate after you entered a gate that would be awesome. Then I just need to copy and paste.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

first post:

the splinepositions are relative to some imaginary middle point of the whole tube and this middle point is set in the Sector, but to set positions for Objects you need Positions in a Zone
so basically to get a Splineposition in a Zone you need to calculate something like:
( Splineposition + Tube Offset in Sector ) - Zone Offset in Sectoe => Position in Zone

and you fly through them, there are just a dozen offsets/additional calculations involved.


second:
currently it is all the time every 10 seconds (rouhly 6 to 7 km in a Tube), but every time you switch the Zone (or Enter/Exit a Tube) a certain Line is printed:
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Player changed Zone to highway01sector05_macro
and the timer is interrupted so it aligns with the first Gate
Additionally the Line
[General] *** aicontext<log.coordinates.in.tube,0x4e422>: Coordinates now inside/relative to tzonecluster_b_sector05_zone21_macro
tells you that the current Zone/nearest Zone has changed (only regular Zones used, no tube Zones or Temp Zones)
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 ;)
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

What's the ingame name of the sector you tested this in? So I can test if it shows up, and if it's in the tube line.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

Ascension - its the Loop Tube which passes through Five Ways ;)
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 ;)
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

So I attempted to do a test and I got. Any suggestions?

Code: Select all

[=ERROR=] Error loading from XML merge/patch file 'maps\xu_ep1_universe\zones'. Check the log for further information. Skipping file.

Code: Select all

 <?xml version="1.0" encoding="utf-8"?> 
<diff> 
  <add sel="/macros/macro[@name='tzoneCluster_B_Sector05_Zone24_macro']/connections"> 
    <connection name="props_lordjack_highway_midgate" ref="highwaymidgate"> 
      <offset> 
        <position x="1072.258" y="-34.851" z="-2049.797" />
		<rotation yaw="0.252826" pitch="0.0327316" roll="-0.032666" /> 
      </offset> 
     </connection> 
  </add> 
  </diff>
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

I found patching zones.xml didn't work too well. Make the path from XR root and try the patch there, or if needed the full file changed as you like it with -prefersinglefiles set in the XR command options. When you come to distribute you can put these files outside extensions in subst_01.cat/dat.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
LordSneazy
Posts: 153
Joined: Wed, 11. Dec 13, 19:47
x4

Post by LordSneazy »

That's probably really good advice. But, frankly you lost me. Could you explain it for a coding dummy?

I don't understand how I would add something from the XR root folder, considering I thought if you want to add anything to the game it has to be from the zones.xml file.

I was thinking about creating my own zones.xml file. However, I was worried about how well that would mesh with future updates and other MODS.

What does the Subst_01.cat file do differently than the normal one?

Return to “X Rebirth - Scripts and Modding”