A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Can't assign AI with custom weapons via guerilla/sapien

Author Topic: Can't assign AI with custom weapons via guerilla/sapien (8 messages, Page 1 of 1)
Moderators: Dennis

Halo305sparts
Joined: Nov 1, 2013

Actually isn't a noob


Posted: Mar 3, 2016 03:31 AM    Msg. 1 of 8       
I assign my custom AI with custom weapon (I.E Halo 3 or Reach BR/DMR) in Guerilla but when I place the AI in sapien, save the scenario and load it up again I don't see my AI carrying that weapon but instead they are carrying a vanilla weapon (IE Halo ce Assault Rifle)

What went wrong?

Custom weapons tags not placed correctly?


A Juicy Frank
Joined: Oct 28, 2013


Posted: Mar 3, 2016 04:12 AM    Msg. 2 of 8       
Could be a number of things. First thought would be that the weapon's label isn't supported by the biped's standing/crouching seat animations. Look at the labels you have in your biped's animation tag under Units-Weapons-Weapon Types and either add your weapon's label there, or rename your weapon's label to one that's already listed.

Second would be depending on how you're placing your AI, either spawning them from an encounter or by attaching a biped to an existing encounter. The former uses the weapons in the actor variant tag, while the latter uses the topmost weapon listed in the biped tag.

Third would be that your custom weapon uses a stock weapon's 3rd person model, so it only looks like they're using the default rifle. I've done this before.
Edited by A Juicy Frank on Mar 3, 2016 at 04:22 AM


Halo305sparts
Joined: Nov 1, 2013

Actually isn't a noob


Posted: Mar 4, 2016 03:59 AM    Msg. 3 of 8       
Quote: --- Original message by: sparky
Quote: --- Original message by: A Juicy Frank
...the topmost weapon listed in the biped tag.


It sounds like this is probably the issue. He did not mention how he applied the weapon to the actor.



I applied the weapon to the actor via guerilla.


A Juicy Frank
Joined: Oct 28, 2013


Posted: Mar 4, 2016 04:45 AM    Msg. 4 of 8       
I'm sure he meant AI, rather than actor. Did any of the suggestions fix the problem?


The reason for the second suggestion is because depending on how you set up your AI they can use different weapons despite using the same exact .biped and .actor_variant.



Edited by A Juicy Frank on Mar 4, 2016 at 04:53 AM


Halo305sparts
Joined: Nov 1, 2013

Actually isn't a noob


Posted: Mar 4, 2016 06:45 AM    Msg. 5 of 8       
I'll try to mess with the biped's weapon set but for now I'm also having problems with Sapien not saving my scenario ..and when ever I try to load it up.. the moment AI begin fighting each other Sapien crashes.


Halo305sparts
Joined: Nov 1, 2013

Actually isn't a noob


Posted: Mar 4, 2016 05:32 PM    Msg. 6 of 8       
Quote: --- Original message by: sparky
That used to happen to me also. Look at the bottom of the debug.txt file.


Manage to get my AI to use my selected Vanilla weapons but still can't use custom weapons.

03.05.16 04:17:20 a hobo pc 01.01.00.0609 ----------------------------------------------
03.05.16 04:17:20 reference function: _write_to_error_file
03.05.16 04:17:20 reference address: 401b13
03.05.16 04:17:20 Couldn't read map file './a_hobobeta.map'
03.05.16 04:17:20 CreateDevice succeeded with refresh rate = 0
03.05.16 04:17:20 Initializing 12 button 5 axis 1 pov joystick 'Generic USB Joystick '
03.05.16 04:17:20 Successfully initialized device axis 1282 instance number 5 - Z Rotation to range [-4096,4096]
03.05.16 04:17:20 Successfully initialized device axis 514 instance number 2 - Z Axis to range [-4096,4096]
03.05.16 04:17:20 Successfully initialized device axis 1538 instance number 6 - Z Axis to range [-4096,4096]
03.05.16 04:17:20 Successfully initialized device axis 258 instance number 1 - Y Axis to range [-4096,4096]
03.05.16 04:17:20 Successfully initialized device axis 2 instance number 0 - X Axis to range [-4096,4096]
03.05.16 04:17:20 Successfully initialized device POV 16 instance number 0 - Hat Switch to range [-4096,4096]
03.05.16 04:17:20 Successfully initialized device button 4 instance number 0 - Button 0
03.05.16 04:17:20 Successfully initialized device button 260 instance number 1 - Button 1
03.05.16 04:17:20 Successfully initialized device button 516 instance number 2 - Button 2
03.05.16 04:17:20 Successfully initialized device button 772 instance number 3 - Button 3
03.05.16 04:17:20 Successfully initialized device button 1028 instance number 4 - Button 4
03.05.16 04:17:20 Successfully initialized device button 1284 instance number 5 - Button 5
03.05.16 04:17:20 Successfully initialized device button 1540 instance number 6 - Button 6
03.05.16 04:17:20 Successfully initialized device button 1796 instance number 7 - Button 7
03.05.16 04:17:20 Successfully initialized device button 2052 instance number 8 - Button 8
03.05.16 04:17:20 Successfully initialized device button 2308 instance number 9 - Button 9
03.05.16 04:17:20 Successfully initialized device button 2564 instance number 10 - Button 10
03.05.16 04:17:20 Successfully initialized device button 2820 instance number 11 - Button 11
03.05.16 04:17:20 Could not initialize unknown device object 192 instance number 0 - Collection 0 - Joystick
03.05.16 04:17:20 Could not initialize unknown device object 448 instance number 1 - Collection 1
03.05.16 04:17:21 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
03.05.16 04:17:21 Increasing sound decompression buffer size to 1048576 bytes
03.05.16 04:17:22 local player 0, weapon (0x0), deleted unexpectedly
03.05.16 04:33:28 crosshair item 0 for halo3\hud\weapon interfaces\master\master references an invalid sequence
03.05.16 04:33:28 static element 1 for halo3\hud\weapon interfaces\master\sword is not valid








After saving the scenario and loading it back up again the Sapien crashes.

03.05.16 04:51:08 sapien pc 01.00.00.0609 ----------------------------------------------
03.05.16 04:51:08 reference function: _write_to_error_file
03.05.16 04:51:08 reference address: 401b13
03.05.16 04:51:08 Couldn't read map file './sapienbeta.map'
03.05.16 04:51:09 CreateDevice succeeded with refresh rate = 0
03.05.16 04:51:09 Initializing 12 button 5 axis 1 pov joystick 'Generic USB Joystick '
03.05.16 04:51:09 Successfully initialized device axis 1282 instance number 5 - Z Rotation to range [-4096,4096]
03.05.16 04:51:09 Successfully initialized device axis 514 instance number 2 - Z Axis to range [-4096,4096]
03.05.16 04:51:09 Successfully initialized device axis 1538 instance number 6 - Z Axis to range [-4096,4096]
03.05.16 04:51:09 Successfully initialized device axis 258 instance number 1 - Y Axis to range [-4096,4096]
03.05.16 04:51:09 Successfully initialized device axis 2 instance number 0 - X Axis to range [-4096,4096]
03.05.16 04:51:09 Successfully initialized device POV 16 instance number 0 - Hat Switch to range [-4096,4096]
03.05.16 04:51:09 Successfully initialized device button 4 instance number 0 - Button 0
03.05.16 04:51:09 Successfully initialized device button 260 instance number 1 - Button 1
03.05.16 04:51:09 Successfully initialized device button 516 instance number 2 - Button 2
03.05.16 04:51:09 Successfully initialized device button 772 instance number 3 - Button 3
03.05.16 04:51:09 Successfully initialized device button 1028 instance number 4 - Button 4
03.05.16 04:51:09 Successfully initialized device button 1284 instance number 5 - Button 5
03.05.16 04:51:09 Successfully initialized device button 1540 instance number 6 - Button 6
03.05.16 04:51:09 Successfully initialized device button 1796 instance number 7 - Button 7
03.05.16 04:51:09 Successfully initialized device button 2052 instance number 8 - Button 8
03.05.16 04:51:09 Successfully initialized device button 2308 instance number 9 - Button 9
03.05.16 04:51:09 Successfully initialized device button 2564 instance number 10 - Button 10
03.05.16 04:51:09 Successfully initialized device button 2820 instance number 11 - Button 11
03.05.16 04:51:09 Could not initialize unknown device object 192 instance number 0 - Collection 0 - Joystick
03.05.16 04:51:09 Could not initialize unknown device object 448 instance number 1 - Collection 1
03.05.16 04:51:09 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
03.05.16 04:51:10 Increasing sound decompression buffer size to 1048576 bytes
03.05.16 04:51:10 crosshair item 0 for halo3\hud\weapon interfaces\master\master references an invalid sequence
03.05.16 04:51:10 static element 1 for halo3\hud\weapon interfaces\master\sword is not valid
03.05.16 04:51:11 cannot add grenades or non-powerups to an actor's inventory as equipment... try using the 'grenade' fields maybe?
03.05.16 04:51:11 cannot add grenades or non-powerups to an actor's inventory as equipment... try using the 'grenade' fields maybe?
03.05.16 04:51:11 local player 0, weapon (0x0), deleted unexpectedly
03.05.16 04:51:12 cannot add grenades or non-powerups to an actor's inventory as equipment... try using the 'grenade' fields maybe?
03.05.16 04:51:12 cannot add grenades or non-powerups to an actor's inventory as equipment... try using the 'grenade' fields maybe?
03.05.16 04:51:12 cannot add grenades or non-powerups to an actor's inventory as equipment... try using the 'grenade' fields maybe?
03.05.16 04:51:12 cannot add grenades or non-powerups to an actor's inventory as equipment... try using the 'grenade' fields maybe?
03.05.16 04:51:12 EAX: 0xC0000034
03.05.16 04:51:12 EBX: 0x40018C01
03.05.16 04:51:12 ECX: 0x00000000
03.05.16 04:51:12 EDX: 0x00000000
03.05.16 04:51:12 EDI: 0x0019E408
03.05.16 04:51:13 ESI: 0x00000000
03.05.16 04:51:13 EBP: 0x0019E2E0
03.05.16 04:51:13 ESP: 0x0019E2D4
03.05.16 04:51:13 EIP: 0x77B57A1C, C2 08 00 90 ?????
03.05.16 04:51:13 EXCEPTION halt in \halopc\haloce\source\objects\objects.c,#1913: function_index>=0 && function_index<NUMBER_OF_OUTGOING_OBJECT_FUNCTIONS
Edited by Halo305sparts on Mar 5, 2016 at 04:53 AM


A Juicy Frank
Joined: Oct 28, 2013


Posted: Mar 5, 2016 07:21 AM    Msg. 7 of 8       
I've never seen that one before. At first it looked like that one that happens with gimped unit tags that reference a non existent function. Everything on it is back from 2007-08. It definitely has to do with the combination of AI with custom weapons. Hobbet mentions it can be caused by 'faulty weapons' and probably can be fixed by remaking the tags, and Kirby suggests looking into the weapon's label. I can't even recreate it right now. How the hell did you do that?



Cached page of matooba's errorlist found on invisionfree. Suggests to recreate the encounter tree in sapien.



Nevermind on Kirby's. The weapon label deal had to do with making a second weapon tag work for the guy. That could suggest that the function could be specific to weapons though. What happens when a stock biped uses your custom weapon, or when your custom biped uses a stock weapon? I also worry that Sparky already knows the answer and I'm leading you even more astray.
Edited by A Juicy Frank on Mar 5, 2016 at 07:36 AM


Super Flanker
Joined: Oct 5, 2012

The length of your life depends on my aim.


Posted: Mar 5, 2016 06:08 PM    Msg. 8 of 8       
Quote: --- Original message by: A Juicy Frank

I've never seen that one before. At first it looked like that one that happens with gimped unit tags that reference a non existent function. Everything on it is back from 2007-08. It definitely has to do with the combination of AI with custom weapons. Hobbet mentions it can be caused by 'faulty weapons' and probably can be fixed by remaking the tags, and Kirby suggests looking into the weapon's label. I can't even recreate it right now. How the hell did you do that?



Cached page of matooba's errorlist found on invisionfree. Suggests to recreate the encounter tree in sapien.



Nevermind on Kirby's. The weapon label deal had to do with making a second weapon tag work for the guy. That could suggest that the function could be specific to weapons though. What happens when a stock biped uses your custom weapon, or when your custom biped uses a stock weapon? I also worry that Sparky already knows the answer and I'm leading you even more astray.
Edited by A Juicy Frank on Mar 5, 2016 at 07:36 AM


Links were helpful ty.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 4:00 AM 234 ms.
A Halo Maps Website