• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

A19 Almond's Turret Expanded

I could run some testing with @Evilspartan on the Tipsy Squatch Gaming server and duplicate this issue.

Since the Turret mod is built on Vanilla assets, it made sense to check the Vanilla assets first since the mod turrets are all extension blocks.

For good measure, we validated game files first for the dedicated server and client files.

Both Vanilla turrets are bringing up the 'Material doesn't have a texture property '_MainTex' red console warning and in the most extreme cases this can result in a NRE warning and force the client to log out and log back in again.

20210611141434_1.jpg

And naturally the extended mod turrets bring up the same warning.

I can confirm this is a Vanilla issue when just using the SMG or Shotgun Auto Turret. At the least we'll just have the red warning on placement. At the worst we'll receive an NRE.

20210611142953_1.jpgI

Functional but unstable and potentially a client breaker.

20210611143131_1.jpg

I shall report it in the Bugs and hope it can be resolved soon so we can continue to enjoy A19 Almond's Turret Expanded Mod because it is actually brings a whole new level of defense to the server to match players' needs.

 
This warning may not always pop up automatically, but if you F1 maybe you'll see it in the background. It's those occasions where it automatically pops up or brings NRE which are not nice.

 
Hiya Almond.

I am getting the same warning about MainTex similar to the others when I set up the turrets. It does not interrupt the game but is there in the log, over and over.

       Material doesn't have a texture property '_MainTex'
       (Filename: C:\buildslave\unity\build\Runtime/Shaders/Material.cpp Line: 1371)


I am using the latest Sphere II mod which is the only place I can find a reference to _MainTex.

Not sure if that helps.

Any ideas on this yet?

thanks

V

 
Father said:
loading up server notice xml error thought I would point it out to you 

wrn xml patch for "loot.xml" from mod "almonds turret mod" did not apply: <append xpath="/loot"



The error is still in there!!!!!

 
The error is still in there!!!!!
<Configs>
<append xpath="/lootcontainers/lootgroup[@name='schematicsElectrical']"> <!-- Fixed by Katana the Olde Phart -->
<item name="autoSniperTurretSchematic"/>
<item name="autoHeavyTurretSchematic"/>
<item name="autoMachineTurretSchematic"/>
<item name="shotgunHeavyTurretSchematic"/>
</append>
</Configs>


This fixes the "wrn xml patch for "loot.xml" bug, but I was just reading the history and saw the Maintex error posts. I don't know about that one.

The above is the entire contents of my modified loot.xml file. You should be able to fix yours by copy/pasting it and replacing the entire contents of the file.

 
Last edited by a moderator:
https://drive.google.com/file/d/19w1oLH0JGVlIZhNxi9-IWB4y66j9_sDF/view?usp=sharing

I hope nobody minds, I've updated this for A20. Mostly I verified this works on my servers and added some quest reward bundles.

It's still AlmondMilk's modlet, I've just fixed one syntax issue and added some new A20 stuff. They put a lot of work into this and I just wanted to keep it fresh. Feel free to use my work as part of an official release if you like, once you've had a chance to review it.

This file is just the XML-only version, I don't know anything about the others.

 
https://drive.google.com/file/d/1CraF90ZwOblz4BUT8k341t-nBXaUQt1S/view?usp=sharing

Finally got around to adapting this for A21. (Also some A20 changes noted here.)

 - Changed some of the fire sounds. Because reasons.

 - Changed from using schematic unlocks to using skill-book-based unlocks.*

 - Also locked behind Engineering progression.

 - I didn't like cluttering my workspace with a near-useless extra workbench, so I folded crafting these into the standard workbench. Saving the clutter in the crafting menus isn't worth it IMHO.

 - Added the new turrets as quest rewards (as of A20).

 - Removed schematics from the loot containers (of course).

 - Added the quest rewards to loot containers (as of A20). So a loot drop may net you new turrets.

* That was a hassle. For some reason extending the autoTurret to make the shotgunHeavyTurret (in blocks.xml) caused the turret to set halfway down the block, which caused it not to work if placed on a full block (auto-targeting was obscured), which I finally figured out had something to do with the "Model" override. I changed it to extend the shotgunTurret instead, which has the exact same model override, but now it works.🤷‍♀️

 
Back
Top