Search

Last Downloaded

zip-0Mission 9: Raising the A
zip-1Mission 5: Deep Cover

Login

unable to create ship

EricMan64's Avatar
Junkie Junkie
  • Posts: 381
  • Thanks: 0

Re:

20 years 4 months ago
#13321
Give these functions a try:
Code:
iMultiplay.LinkShipWeapons( hship ship ); iMultiplay.UnlinkShipWeapons( hship ship );
Use these to link or unlink the ship's weapons. But, as GrandpaTrout has already warned, you cannot use these functions on a ship with beam weapons. If you call the linking function on a ship with any number of beam weapons, or if you add beam weapons to a ship after calling the function, the game will crash to desktop. I have poked around with this many times in the past, and I have yet to find any way around this limitation. If you manage to find a way, please, let us know. :)

Please Log in or Create an account to join the conversation.

TheCoredump's Avatar Topic Author
Beginner Beginner
  • Posts: 10
  • Thanks: 0

Re:

20 years 4 months ago
#13327
Correct, using
Code:
iMultiplay.LinkShipWeapons( hship ship );
solve the linking problem of the pbc, but not missiles (but missiles aren't a problem).
Thanks

TheCoredump
TheCoredump

Please Log in or Create an account to join the conversation.

MajorTom's Avatar
Junkie Junkie
  • Posts: 992
  • Thanks: 0

Re:

20 years 4 months ago
#13332
It's been reported, if you put beam weapons on a ship in the single player game and then call: iMultiplay.LinkShipWeapons( hship ship );
The game will crash. I dunno, I've never tried it.

Has anyone ever tried to simply add the weapons link to inventory and then mount it in the hangar? For example:

iInventory.Add( 555, 1 );
(thats the enum for the Cargo_WeaponLinkHardware)

Then put the darn thing on the ship in the hanger and let the game do the rest. [?]






Iwar2 Multiplayer Fan Site

Please Log in or Create an account to join the conversation.

EricMan64's Avatar
Junkie Junkie
  • Posts: 381
  • Thanks: 0

Re:

20 years 4 months ago
#13342
The hanger does all the linking automatically. The trouble is linking weapons without the hanger.

Please Log in or Create an account to join the conversation.

Joco's Avatar
Regular Regular
  • Posts: 148
  • Thanks: 0

Re:

20 years 4 months ago
#13343
So the Hanger would link beamed weapons without a CTD?? If it does then there IS a way to do it. We just need to find the right pattern.

Please Log in or Create an account to join the conversation.

GrandpaTrout's Avatar
King of Space King of Space
  • Posts: 1135
  • Thanks: 0

Re:

20 years 4 months ago
#13344
Well the hanger is C++ code. So it can reach object properties that we don't know how to reference (no object property name list has been found). And it might be setting them up with custom methods we cannot access. (just a wild guess why they are crashing is the properties cannot be init correctly from POG).

Please Log in or Create an account to join the conversation.