|
Post by InternWaffle on Sept 11, 2021 20:24:27 GMT -5
objectRoutingBehavior_Bots_Garden_RouteToObject Gardening bots are completely busted and I'm trying to figure out why. They never finish actions.
The code here says stuff like this: Am I reading this right? It looks like it's saying the bot action to water a garden applies the loot "Gardening_Water" to the object, meaning the plant gets told it is watered. The "Test" part says it only does this action on the WHITELISTED actions, of Moisture_0_VeryDryRed, etc. This means that the bot will water a plant if it has any of those 3 states, but will IGNORE any other state. Is this correct? Therefore, here, it's saying "Only target things with any of these 9 states"?
And then down here, it's saying "Only do the action_garden_weed on things with these 3 states of weed applied"?f weed applied"?f weed applied"?f weed applied"?
If I've got all these understood correctly I can't figure out where the code is messed up that the bots don't drop their interaction and look for another one once it's done. They'll just spray the same plant forever and never move on to another one. Working backwards, I looked at things like garden_weeded_loot and loot_gardening_water and if I understand THOSE correctly (this is all guess work from looking, I do not know what I'm doing) what those do is set the commodity for those things. So loot_gardening_water says it sets the "range" between 90 and 100, and the plant considers 90-100 to count as watered. The weed one sets it to "max", so I assume that sets it to 100, and then when you look at weeds_0 weeds_1 and weeds_2 you can see their threshold numbers. When the number matches those, the plant enters those states, yes?
I'm also trying to solve the issue of daily weeds and bugs, so I'm just working backwards here to try and fix two things and just need to know if I'm looking at them right, I guess...
Also, what is "loop time"? I can't find anything about this anywhere.
Looking at this stuff I really can't figure out what the heck could be wrong. It's driving me crazy.
|
|
|
Post by Fwecka (Lolabellesims) on Sept 11, 2021 21:06:13 GMT -5
I sat here and looked at your post for fifteen minutes wondering if I should respond at all. Then I thought, why not? It can't hurt. I don't know the first thing about XML tuning, but I know that MizoreYukii does. She's got some tutorials here that might be worth looking at (you never know what tiny but highly useful bit of information you'll pick up). And her profile is here. You can search her posts to see if there's anything of use. She does answer questions here but it's not daily, so be sure to check your post periodically over the next few days. Hopefully, she'll see your post and respond. Edit: BakieGaming has some tutorials too. Again, there might be something there that will answer your question. You never know. Though I get that it's frustrating to search the internet and spend hours looking at tutorials just to pick up a tiny bit of info. When it comes to modding games, that's how it works, unfortunately. I am so sorry I can't help more than this. Do this site a favor, please. If you get your problem figured out will you post the solution? It will help others in the future.
|
|
|
Post by InternWaffle on Sept 12, 2021 10:34:10 GMT -5
Well, I felt like if I tagged anyone I was basically asking them to fix the bug for me lol
That's sort of what happened with the last mod I tried to make, MizoreYukii basically made it and then I recreated it using the info I was given, but really they did all the work for me I think.
I'm pretty sure I'm reading it all right, and I just can't see where the bots are getting confused. I can add that I've downloaded a mod by Ravasheen that automatically removes weeds/bugs every day, and the bots still try to spray for weeds/bugs, so I think their whitelist is busted and they just can't recognize when something is "done" so they don't move on. That's all I've figured out.
|
|
|
Post by menaceman44 on Sept 12, 2021 12:41:02 GMT -5
I'm assuming "loop_time" is how long the animation should play for before the interaction completes. I have no idea what it is measured in though. It could be game clicks, in-game seconds, real world seconds, or something else I'm not aware of.
|
|
|
Post by InternWaffle on Sept 12, 2021 19:35:57 GMT -5
Hmmmm.
I suppose for my purposes since I have a mod to circumvent weeds and bugs, I could just...remove the whitelists so they only water lol
But if the whitelists aren't working right as I suspect, removing them would probably have the same effect as leaving them, as they're being ignored right now anyway.
Or I could try blacklisting all the states for weeds/bugs.
This really is trial and error huh? I'm just pushing ideas together from reading other xmls lmao
|
|
|
Post by MizoreYukii on Sept 13, 2021 10:22:11 GMT -5
Do you still need me to look into this? I saw you had a fix option in the WCIF. Also, if you still need the tutorials and programs on the UI mods I mentioned in my Twitter reply, I can link them for you.
|
|
|
Post by InternWaffle on Sept 13, 2021 12:10:20 GMT -5
The fix I got in the WCIF thread basically makes weeds and bugs stop being an issue (the bug is that they spawn every single day since cottage living, which makes gardens basically unplayable). This problem is separate- the gardening bots never finish any actions they do on plants, and will just stand there messing with one of them for eternity.
I've tried a couple janky things with the whitelist and the animation timing but nothing seems to solve it and I still have no clue where the actual snag in their programming is. :/
Ideally I'd get them working and then it wouldn't matter bugs/weeds spawn every day because my bots would take care of them, but as-is they can't even simply water the plants. They're just totally busted!
|
|
|
Post by MizoreYukii on Sept 20, 2021 20:32:10 GMT -5
Are you sure this isn't a bug from a mod, or a game that just needs repair? I made a bot, planted a bunch of vegetables, and the bot is doing it's job without issue (just takes a bit). Also, I compared the old relevant bot files to the new ones and nothing has been changed other than syntax and one new addition, and the animation related files had no changes (I did not check the clips though). You could try adding the <T>222538<!--loot_Bots_Actor_Requeue--></T> to each loot list and see if that helps your bug though, but I'm not sure what else you could do.
|
|
|
Post by InternWaffle on Sept 21, 2021 19:02:10 GMT -5
I've played completely without mods and the bots still just spray forever on one plant. If they move it's after an hour, and they absolutely cannot keep up with a real garden/farm. :/
|
|