New missiles bug !?

The place to discuss scripting and game modifications for X²: The Threat.

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

User avatar
Zeron-mk7
Posts: 584
Joined: Sat, 23. Feb 08, 12:38
x3

New missiles bug !?

Post by Zeron-mk7 »

I found bug, when I add 16 new missiles (total are 24 missiles in the game).
I add in the x2story.obj and x2galedit.obj files max number of missile - 31 (do that with OBJ PATCH 15), after I add 16 new missiles, missiles work fine in the game, but in the weapon control menu, about 8 missile show wrong missile model (bod file), showed another missile model and one missile show laser model (bod file).
I 3 times or more rework, recreate Trocket file, but nothing changed (many times checked Trocket file, all parametrs are correct), I start
thinking maybe this is OBJ PATCH 15 bug - when add too many missiles he change something wrong in the obj files.
I don't know, maybe someone know about this problem or maybe someone is faced with the same problem ?
Here are 2 missile bug showed in the screenshots:
[ external image ] [ external image ] [ external image ]

[ external image ] [ external image ] [ external image ]
Image
User avatar
Shadow dream
Posts: 1840
Joined: Thu, 1. Mar 07, 11:39
x3tc

Post by Shadow dream »

I believe there are not many people out there who know how to manipulate the code. Since it's russians who first did this many except you to know how it works now :P
Pandora uses a modified version too but we never experienced such a problem before. the only problem we had is how to know which bullet is linked to which laser, after adding about 100.
We never added new missles jet, we just added some new t-files for better control of the whole game. If we discover the problem we'll let you know :)

Shadow
Wahre Gentlemen behalten sogar umzingelt von Löwen ihren Leitsatz: Ladies first.
Wann lernt die Gesellschaft endlich, dass Geld erst die Probleme macht, die wir haben?
[ external image ]
Topic - Gallery - Forum - Freiheit
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

Are you sure you use correct Picture id's [Offset 1]? I think menus use picture ids instead of body ids - they should be the same.
--------------------------------

[ external image ]
User avatar
Shadow dream
Posts: 1840
Joined: Thu, 1. Mar 07, 11:39
x3tc

Post by Shadow dream »

the menue uses the picture ID, correct. it would explain that if it was a wrong missle-body, but not how a laser-body got there ..? At least I hope zeron has NOT used laser-bodies with missles! :o (I would burry myself immediately if I'd discover that - the shame........)

honestly, that's the last thing I could think about here :P

@Zeron: anyhow, what about those screens? You show us that the body changes. Did they change after a game-start (for what reason ever) or have you modfied anything while making those 6 screens?

Shadow
Wahre Gentlemen behalten sogar umzingelt von Löwen ihren Leitsatz: Ladies first.
Wann lernt die Gesellschaft endlich, dass Geld erst die Probleme macht, die wir haben?
[ external image ]
Topic - Gallery - Forum - Freiheit
User avatar
Zeron-mk7
Posts: 584
Joined: Sat, 23. Feb 08, 12:38
x3

Post by Zeron-mk7 »

Chris Gi wrote:Are you sure you use correct Picture id's [Offset 1]? I think menus use picture ids instead of body ids - they should be the same.
Yes, Picture ID and Body ID are the same - missile bod model, like I write in early, I checked many times Troket file, problem not in the Trocket file, because in the wares list rocket body shows correctly, but in ship weapon control menu shows wrong, shows other missile body, from 16 new missiles, shows correctly only about 5 - 7 missiles in the ship weapon control menu.
Shadow dream wrote:At least I hope zeron has NOT used laser-bodies with missles!
Of course not.

Also, when I deleted only 2 missiles from Trocket file, Virus missile not showed laser bod model anymore, but showed, again other missile bod model in the ship weapon control menu.

About screenshots:
In the first 3 screenshots showed Wing missile example. I add new missiles in the equipment dock, in 1 screenshots see correct Wing missile bod model (screenshots from the equipment dock), 2 screenshots are from ship weapon control menu, in this menu missile shows incorrect, wrong, shows other missile bod model, in 3 screenshots see missile scene in space and missile works correct.
In the last 3 screenshots, showed Virus missile example. Problem are the same, but shows only weapon bod model, in the Trocket file are correct missile bod model number in the Picture ID and Body ID and they are the same.
I don't know, where are the problem, I will ask about this problem in the russian forum, maybe someone know about this problem.
Image
User avatar
Shadow dream
Posts: 1840
Joined: Thu, 1. Mar 07, 11:39
x3tc

Post by Shadow dream »

Zeron-mk7 wrote:
Shadow dream wrote:At least I hope zeron has NOT used laser-bodies with missles!
Of course not.
phew, glad to hear that :D

OK, now I understand the background of the problem properly. This one is realy odd! I have never seen, that the picture ID changes from menu to menu :o
It would be cool if you could CONTROLL this effekt! Such as for unknown objects that are not in your cargospace won't show the body. :roll:

As far as I'm aware of, this realy is an obj. problem. Sorry, but I have absolutely no plan how that thing works. I only saw some lines that Chris has posted in our forums, when he first got his hands on the code, and I just saw nonsense.
I have no clue about programming either, this might be the reason ^^ I admire him for beeing able to manipulate that thing [ external image ]

Shadow
Wahre Gentlemen behalten sogar umzingelt von Löwen ihren Leitsatz: Ladies first.
Wann lernt die Gesellschaft endlich, dass Geld erst die Probleme macht, die wir haben?
[ external image ]
Topic - Gallery - Forum - Freiheit
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

If this is an issue with OBJ PATCH 15, noone here is able to help you. You need to contact the original author. I guess the Russian forum is your best bet.
I'm not sure how PATCH15 really works, but it's obviously limited in it's scope. Otherwise, a restriction on 31 rockets or 200 new ship slots is not understandable because X2 can handle 65536 missile types and 65536 ship slots...

You should consider using less rockets... similar to the laser slots: it's not a good idea to use all possible 32 laser slots, because the lasers won't get properly displayed in the ship's weapon menu...
--------------------------------

[ external image ]
User avatar
Zeron-mk7
Posts: 584
Joined: Sat, 23. Feb 08, 12:38
x3

Post by Zeron-mk7 »

I need to think more about it, tested little bit more and choose the best variants, I do not want too small number of missiles in the mod. :wink:
Chris Gi wrote:because the lasers won't get properly displayed in the ship's weapon menu...
Only one laser color box not shows up in the ship compatible lasers list, this is small trifle. :mrgreen:
Image
User avatar
Zeron-mk7
Posts: 584
Joined: Sat, 23. Feb 08, 12:38
x3

Post by Zeron-mk7 »

OBJ PATCH 15 author answer me in russian forum, about this bug, he told:
As far as I remember, PATCH 15 changed the constant number of missiles that are displayed on the monitor of the player and added Coloring for extended range missiles. Of models of missiles and ships, PATCH knows nothing.
This problem should not arise because of the patcher. Try adding one rocket. Look at what stage there is a bug.
I will try to add one by one missile, lets see what happens, then will see, on what missile number bugs shows up.
Image
User avatar
Zeron-mk7
Posts: 584
Joined: Sat, 23. Feb 08, 12:38
x3

Post by Zeron-mk7 »

I try to add one by one missile, after I add fifth missile show up this bug.
From russian forum, one very knowing pilot (he know about editing obj code alot of) answered that - Apparently, the restriction on the number of missiles is in the exe, need to edit obj code. :(

Code: Select all

TMENU_ID.GetObjectBodyFromType(arg1, arg2)
Introducing an amendment to add a rocket.
Need to change the menu for an extended missiles count, so

Code: Select all

SA_GetTypeBody, SA_GetTypeCut и SA_GetTypeCompBody 
return for the new missiles incorrect values.
Image

Return to “X²: The Threat - Scripts and Modding”