Garry's Mod

Garry's Mod

MelonWars: Factions
 This topic has been pinned, so it's probably important
JonahSoldier  [developer] 15 Jul, 2024 @ 6:57pm
Issue Reports
Post any bug/exploit reports here.

For Lua Errors
Please post the full error trace. This will be in the console, and will look similar to this:
[melon-wars] addons/melon-wars/lua/autorun/server/sv_melonwars.lua:796: attempt to perform arithmetic on a nil value 1. func - addons/melon-wars/lua/autorun/server/sv_melonwars.lua:796 2. unknown - lua/includes/extensions/net.lua:38 (x24)
It will either be highlighted in blue (server-side error) or red/yellow (client-side errors)

If you've encountered any other issue please also check the console to see if there were any lua errors. It is substantially easier to fix issues with this information, as otherwise it's essentially guess-work determining what the problem is.

For everything else
Please describe exactly what issue you encountered, and what triggered it. It'd also be helpful (if possible) if you could upload a recording of whatever issue you encountered, upload it to youtube as unlisted, and then include a link in your post.
Keep in mind I have to figure out why an issue is happening in-order to fix it. Saying "<thing> is broken/doesn't work" without elaborating further isn't helpful. If I can't re-produce an issue it's very unlikely that I'll be able to fix it.

Footnote:
You don't have to post issues to this discussion, you can still create new ones as you normally would. However (especially for minor things like lua errors) I'd appreciate if as much as possible was kept in one place.
Last edited by JonahSoldier; 15 Jul, 2024 @ 7:00pm
< >
Showing 1-15 of 20 comments
76561199565672876 14 Oct, 2024 @ 10:15pm 
Lua error 1
[MelonWars: Factions] lua/includes/modules/duplicator.lua:732: attempt to call method 'CheckLimit' (a nil value)
1. CreateConstraintFromTable - lua/includes/modules/duplicator.lua:732
2. unknown - lua/includes/modules/duplicator.lua:875
3. ProtectedCall - [C]:-1
4. Paste - lua/includes/modules/duplicator.lua:875
5. contraptionSpawn - lua/autorun/server/sv_melonwars.lua:526
6. func - lua/autorun/server/sv_melonwars.lua:584
7. unknown - lua/includes/extensions/net.lua:38
Lua error 2
[MelonWars: Factions] lua/entities/ent_melon_prop_base/init.lua:80: attempt to perform arithmetic on field 'value' (a nil value)
1. unknown - lua/entities/ent_melon_prop_base/init.lua:80
Lua error 3
[MelonWars: Factions] lua/includes/modules/duplicator.lua:732: attempt to call method 'CheckLimit' (a nil value)
1. CreateConstraintFromTable - lua/includes/modules/duplicator.lua:732
2. unknown - lua/includes/modules/duplicator.lua:875
3. ProtectedCall - [C]:-1
4. Paste - lua/includes/modules/duplicator.lua:875
5. contraptionSpawn - lua/autorun/server/sv_melonwars.lua:526
6. unknown - lua/entities/ent_melon_contraption_assembler/init.lua:41

I was playing on a 4 player, local server for Melonwars. Nobody else was on the local server except for me. I had an issue pertaining to contraptions. Whenever a contraption was spawned some of it would delete and it would disassemble itself. This happened while spawning it with the contraption menu spawner and using a contraption assembler. The errors were all blue.
JonahSoldier  [developer] 16 Oct, 2024 @ 2:04pm 
I've updated the addon with a change that might fix that.

Something else worth noting is that I'm guessing from one of the errors that you're using base props (ones spawned from the melon wars tool) to build your contraptions. You should be using ones from the normal spawn menu (they'll have their team and health set up when you spawn them via the assembler or tool). The change I made should fix the issue you reported, but you're likely to run into others if you're using Melon-Wars base props instead of normal props, because they aren't designed for that.

As a side-note one of the base-game's lua files (the one that handles saving/spawning things with the duplicator, which is the same system contraptions use) seems to be different for you than it is for me. I'm not really sure why this is. If you keep having problems it might be worth validating your game files, or disabling/enabling other addons to see if any of them are overriding it for some reason.
76561199565672876 16 Oct, 2024 @ 9:39pm 
Thank you so much for trying, I found out how to fix it but it was not pertaining to whatever you did/ suggested to fix it. First I had tried to validate my game files but that did not work. I had already tried turning all my other addons off but that also did not work. So I remembered I was playing on the x64 chromium branch and it seemed that was the issue that was causing the inability to use saved contraptions.

I hope that maybe you will be able to fix the conflict with the x64 chromium branch (If possible).
JonahSoldier  [developer] 17 Oct, 2024 @ 11:42am 
Ah, that makes sense. I've updated the addon again now, it should be fixed.

This has also reminded me I need to switch to the 64 bit version again. I usually have that on, but I recently switched computers.
Lukencio™ 18 Nov, 2024 @ 8:43pm 
Hello!
[MelonWars: Factions] lua/weapons/gmod_tool/stools/melon_universal_tool.lua:3894: attempt to index global 'mw_team_colors' (a nil value)
1. Think - lua/weapons/gmod_tool/stools/melon_universal_tool.lua:3894
2. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:174 (x212)

It happens when i start a new multiplayer server and i select the tool. It appears to be trying to create team colors bc on the team selection every color appears as grey
JonahSoldier  [developer] 19 Nov, 2024 @ 7:59am 
Make sure you don't have both versions of Melon Wars enabled at the same time. From the error it looks like you have the vanilla version of the player tool (Specifically it references a line-number that exists in vanilla, but not in this version).
Lukencio™ 19 Nov, 2024 @ 11:04am 
Yeah it was that. I had to re-open the game because it wasn't deleted completely
Thank you!
Last edited by Lukencio™; 19 Nov, 2024 @ 11:04am
Contraption Manager doesn't load vehicles properly on p2p matches. It only spawns the props but not the entities from Melon Wars. Instead, the person who hosted, can spawn it normally without an issue and i don't have the Marum's version
JonahSoldier  [developer] 28 Jan @ 11:14am 
Should be fixed. Facepunch messed with the logic for duplicator functions at some point, so it was broken for anyone who wasn't an admin. I've implemented a somewhat messy work-around for that.
Hey but it's a fix! thank youu
Hello again.
Structures have 0 life. any building can be destroyed with one shot of a marine and i tried this on both sandbox and match started
JonahSoldier  [developer] 31 Jan @ 2:59am 
I assume you mean base-props. Should be fixed now.
yeah, base props
Thank you
Also, this might not be an issue but snipers are very op and for example, against turrets, they destroy them in a matter of seconds while the turrets almost fail all their shots. Turrets should have 100% accuracy i guess
Last edited by Lukencio™; 31 Jan @ 8:09am
JonahSoldier  [developer] 31 Jan @ 10:38am 
They're more-or-less the same as they were in the original MW. You can deal with them, it's just not 100% intuitive.

Base props as decoys and sniper turrets work really well defensively. You can actually see a bit of this in the trailer (0:10 and 2:10); though most of the other defences in other clips are fairly atypical (either because they were clips from really weird matches, or of inexperienced players).

Offensively it mostly just depends on whether you're able to rush them or not (though certain units are better/worse against them. Marines because they're cheap fodder, gunners because they can take 2 hits. Other high-value units like missiles tend to do poorly).
I'm new so this might just be me not knowing how to do things but I'm experiencing no errors, thrusters don't appear in contrap, and unit transports don't attach to the prop I place them on and become unmovable.
< >
Showing 1-15 of 20 comments
Per page: 1530 50