Zamirathe / ZaupFeast

Feast Rocket Plugin for Unturned 3.0
Other
0 stars 10 forks source link

About the <string> and the question #12

Open sonderlau opened 8 years ago

sonderlau commented 8 years ago

I added about more than 5 strings in config file... i saw that it cant be used..
i added the Mod items id in it,it still cant use. Question appears again.

Like the

NullReferenceException: Object reference not set to an instance of an object – ZaupFeast.Feast.FixedUpdate ()

I added the translation file.. it means i cant use that on mod id? I just can wait the new version? .... my server will open.. i want my server like the RoyalBox ,,, i cant wait...

Zamirathe commented 8 years ago

I am confused. What do you mean more than 5 strings? You use mods in the feast as long as you have the id. Clearly your config must be wrong somewhere if it is throwing that error.

Ayria commented 8 years ago

I think I know what he is talking about. I ran into the same issue after the latest update. I tried to make items drop in certain locations only, and the only string I could get to work was "all". No matter what node I set them to drop at, I would get an error. Looking back at the logs I believe this was the error:

8/22/2015 3:00:51 AM] [Error] Failed to load ZaupFeast, unloading now... :System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List1+Enumerator[ZaupFeast.Locs].VerifyState () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1+Enumerator[ZaupFeast.Locs].MoveNext () [0x00000] in :0 at ZaupFeast.Feast.Load () [0x00000] in :0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00000] in :0 [8/22/2015 3:00:51 AM] [Info] Unloading plugin: ZaupFeast

In the end I decided to just use "all" instead of the specific nodes. (Using map VinIsland)

Zamirathe commented 8 years ago

Okay, just pushed out a fix I hope. As I don't have time right now to test it, please let me know if it works without having to use all.

Ayria commented 8 years ago

I set it so only vanilla items can drop, changed the string to ADAlpha and got the same error I pasted above. As far as the string issue goes, it appears to not be fixed. Still testing about the stuck loot.

Zamirathe commented 8 years ago

Changed what string? Give me an example please.

Ayria commented 8 years ago

This is how I set it to test, all items were set to ADAlpha and I got the error I mentioned before. < FeastItem > < Id >331< /Id > < Name >Planter< /Name > < Chance >5</ Chance > < Locations > < string >ADAlpha</ string > </ Locations > </ FeastItem >

(had to add extra spaces, it wouldn't post.) (sorry posted this elsewhere accidentally)

Ayria commented 8 years ago

Please let me know if I need to clarify better.

Zamirathe commented 8 years ago

I need to do more testing and probing to find out what is going on with this. I just do not have the time or patience right now. (It sucks to be sick.) In the meantime, continue to use the July 31st build and all as the string.

Ayria commented 8 years ago

Sorry to hear that you're not feeling well. Hope you feel better. :+1: