Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

Create and Share Custom Mods
The best mods for Warhammer 40,000: Gladius live here. Mods are made by players, for players and are not officially licensed by Games Workshop. Click 'Learn More' below to read our Modder’s Guide.
Learn More
Vulkalu 4 14 Aug, 2024 @ 1:32pm
Manned Weapon Issue
Having troubles with adding Manned Weapons to other units.

Essentially I was adding a new weapon file to certain units with the MannedWeapon trait on it, and this works fine for me when I tested it in debug. However, when I had some friends test it, it started behaving... oddly.

Whenever in multiplayer (for all clients), or saving/reloading (for singleplayer), the Manned Weapon would instead be a copied version of the unit's main weapon, rather than what the Manned Weapon was intended to be, and would be active permanently rather than needing to be manned.

For example, I tried adding a smaller weapon to the Tidewall that needed to be manned, but it instead acts like it has 2 of its railgun, which is not at all intended. As another example, this has also affected neutral bastions (all bastions, really), where the game acts like it has 6 bolters instead of the 3 base and 1 extra weapon it was meant to have.

I'm not entirely sure what could be causing this, and was wondering if maybe someone had any insight as to why.
< >
Showing 1-10 of 10 comments
Jey 14 14 Aug, 2024 @ 11:49pm 
It's probably the chungus interacting poorly with the zlorbag during the vldjlka.

Publish your mod on the workshop and link it if you want people looking at it.
Maybe you did something wrong, maybe MannedWeapon has some hardcoding. There is no way for us to know without seeing the actual files.
Vulkalu 4 15 Aug, 2024 @ 2:04am 
I'm not willingly uploading a broken mod publicly. This isn't to say I wasn't expecting the "no one would know without seeing it," but that wasn't really the point of my post.

That "maybe it has some hardcoding" was more of the point. Has anyone tried applying it to other weapons/units? Does anyone have any experience with what might be the issue, or know enough about whether it is or isn't hardcoded or some other weird quirk of it?

Essentially a: "should I spend potential hours trying to find a mistake I might have done, or is this just a problem with the game?" Perhaps I should've more concisely said that from the get-go--being concise isn't exactly something I'm great at.
Vulkalu 4 9 Sep, 2024 @ 4:47pm 
For future reference, in case someone else bumbles into the same mistake I've been having:

Finally came back to retesting this and no, no it's not an issue with Manned Weapon at all. If I removed the trait, it was still causing problems. I still have no idea what was causing the problem at all, since I've added a weapon to a transport unit just fine prior to this, but for some reason it was fortifications only that were freaking out about this.

Wound up just reverting the unit files to being unextended and so far it's worked, again, no idea why, since nothing else changed.
Erik Taurus 30 Sep, 2024 @ 4:32am 
How did you extend the unit? Did you add another weapon within the <weapons> tag?
Vulkalu 4 1 Oct, 2024 @ 12:55pm 
Yeah, I added the extra weapons I wanted there.

Like I said before, I had added a weapon to another unit prior to this with no issue, even with the file extended. It's specifically fortifications that have been giving me this trouble while extended, which is a bit odd to me.
Erik Taurus 1 Oct, 2024 @ 7:21pm 
I see!
I haven't tried adding or modifying manned weapons.
I do know a few things about modding Gladius in general but without seeing the file(s) it's difficult to assist.
Perhaps this is like the features which can't be extended for some reason, meaning that some entities in the game doesn't work the same way.
Vulkalu 4 1 Oct, 2024 @ 11:24pm 
Hard to say. Honestly, the manned weapons I did were really simple with minimal changes. They were all just copies of existing weapons, but with the manned weapon trait, that's it, no other changes to them barring the file name.

In some ways I've kinda gotten to the point where I don't overly care if I can "fix" the issue, to make the files extended again, since as long as they're compatible with the modset I use with my friends, I'm not super concerned. But on the other hand... it's more just an interest in knowing WHY it's acting differently when extended or not, for learning purposes. I've never modded a game (or really had anything to do with code) before working on these mods, so it's hard for me to really guess what might be the issue.

As far as not seeing the files... A friend's been wanting me to make the mods public at some point anyways, so I likely will eventually, it's just been a combination of making sure things aren't horribly broken, and then being busy with other things.
Erik Taurus 2 Oct, 2024 @ 8:07pm 
Originally posted by Vulkalu:
Hard to say. Honestly, the manned weapons I did were really simple with minimal changes. They were all just copies of existing weapons, but with the manned weapon trait, that's it, no other changes to them barring the file name.
OK!

Originally posted by Vulkalu:
In some ways I've kinda gotten to the point where I don't overly care if I can "fix" the issue, to make the files extended again, since as long as they're compatible with the modset I use with my friends, I'm not super concerned. But on the other hand... it's more just an interest in knowing WHY it's acting differently when extended or not, for learning purposes.
Yes, I have the same kind of reasoning and I think it's a good thing wanting to know the root cause and how things are connected.

Originally posted by Vulkalu:
I've never modded a game (or really had anything to do with code) before working on these mods, so it's hard for me to really guess what might be the issue.
Sometimes it's guesswork and especially so with this game as Proxy Studios hasn't released the xml-schema so we don't know how the xml should be structured. For me this is especially an issue with conditions, sometimes they work in traits, sometimes in actions and sometimes they have to be in both. I haven't got my brain around that as of yet.

Originally posted by Vulkalu:
As far as not seeing the files... A friend's been wanting me to make the mods public at some point anyways, so I likely will eventually, it's just been a combination of making sure things aren't horribly broken, and then being busy with other things.
That's good and also that you care about quality :)
Do you have Discord and are on the Proxy Studio channel?
Last edited by Erik Taurus; 2 Oct, 2024 @ 8:08pm
Vulkalu 4 2 Oct, 2024 @ 11:27pm 
Originally posted by Erik Taurus:

Originally posted by Vulkalu:
I've never modded a game (or really had anything to do with code) before working on these mods, so it's hard for me to really guess what might be the issue.
Sometimes it's guesswork and especially so with this game as Proxy Studios hasn't released the xml-schema so we don't know how the xml should be structured. For me this is especially an issue with conditions, sometimes they work in traits, sometimes in actions and sometimes they have to be in both. I haven't got my brain around that as of yet.

Originally posted by Vulkalu:
As far as not seeing the files... A friend's been wanting me to make the mods public at some point anyways, so I likely will eventually, it's just been a combination of making sure things aren't horribly broken, and then being busy with other things.
That's good and also that you care about quality :)
Do you have Discord and are on the Proxy Studio channel?

I have never felt "guesswork" more than trying to learn code. Not knowing why something isn't working... sometimes not knowing why it IS working, when it seems like it shouldn't.

I'm not on that server, no. I tend not to join discord servers.
Erik Taurus 3 Oct, 2024 @ 3:55am 
Originally posted by Vulkalu:
I have never felt "guesswork" more than trying to learn code. Not knowing why something isn't working... sometimes not knowing why it IS working, when it seems like it shouldn't.
:D Sometimes things doesn't make a lot of sense!

Originally posted by Vulkalu:
I'm not on that server, no. I tend not to join discord servers.
I fully understand, I'm not there either but I could've made an exception if you wanted to share just the one file so I could have a look at it.
< >
Showing 1-10 of 10 comments
Per page: 1530 50