PrettyPotatoo Posted March 2, 2019 Posted March 2, 2019 I want to make equipment slot and i've done it right but i cannot find this <Equipment> <WeaponSlot>2</WeaponSlot> <ShieldSlot>3</ShieldSlot> <Slot0>Helmet</Slot0> <Slot1>Armor</Slot1> <Slot2>Weapon</Slot2> <Slot3>Shield</Slot3> <Slot4>Boots</Slot4> <Slot5>Gloves</Slot5> <Slot6>Ring</Slot6> <Slot7>Necklace</Slot7> <Slot8>Face</Slot8> <Slot9>Back</Slot9> <Slot10>Wig</Slot10> </Equipment>  Where do i find this file? to edit this
Xeno Posted March 2, 2019 Posted March 2, 2019 It no longer looks like this in 5.0. Go to Server > Resources > Config.json .. It should look more like this:  "Equipment": {   "WeaponSlot": 2,   "ShieldSlot": 3,   "Slots": [    "Helmet",    "Armor",    "Weapon",    "Shield",    "Boots",    "Cape",    "Amulet",    "Ring"   ], Also, please change the thread title to "How to Add Equipment Slots 5.0". It will help future users.
PrettyPotatoo Posted March 2, 2019 Author Posted March 2, 2019 Thanks, I've tried this but i get errors when trying to start the server. I have ther error log if you want to see it. What other things do i need to do to make it work? --- 2019-03-02 01:42:06.027 [Error] Received unhandled exception from . 2019-03-02 01:42:06.046 [Error] Message: After parsing a value an unexpected character was encountered: ". Path 'Equipment.Slots[3]', line 30, position 3. 2019-03-02 01:42:06.046 [Error] Stack Trace:   at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)   at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)   at Newtonsoft.Json.JsonTextReader.ReadAsString()   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Intersect.Options.LoadFromDisk() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\Options.cs:line 138   at Intersect.Server.ServerStart.Start(String[] args) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect.Server\Classes\Core\ServerStart.cs:line 51 2019-03-02 01:42:06.046 [Error] Time: 3/2/2019 1:42:06 AM -------------------------------------------------------------------------------- 2019-03-02 01:42:33.037 [Error] Received unhandled exception from . 2019-03-02 01:42:33.048 [Error] Message: Exception has been thrown by the target of an invocation. 2019-03-02 01:42:33.048 [Error] Stack Trace:   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   at Newtonsoft.Json.Serialization.JsonContract.<>c__DisplayClass57_0.<CreateSerializationCallback>b__0(Object o, StreamingContext context)   at Newtonsoft.Json.Serialization.JsonContract.InvokeOnDeserialized(Object o, StreamingContext context)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.OnDeserialized(JsonReader reader, JsonContract contract, Object value)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Intersect.Options.LoadFromDisk() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\Options.cs:line 138   at Intersect.Server.ServerStart.Start(String[] args) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect.Server\Classes\Core\ServerStart.cs:line 51 2019-03-02 01:42:33.048 [Error] Stack Trace:   at Intersect.Config.PaperdollOptions.Validate(EquipmentOptions equipment) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\PaperdollOptions.cs:line 95   at Intersect.Config.EquipmentOptions.Validate() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 55   at Intersect.Config.EquipmentOptions.OnDeserializedMethod(StreamingContext context) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 40 2019-03-02 01:42:33.048 [Error] Time: 3/2/2019 1:42:33 AM -------------------------------------------------------------------------------- 2019-03-02 01:42:33.048 [Error] Inner Exception? 2019-03-02 01:42:33.048 [Error] Message: Config Error: Paperdoll item Shield does not exist in equipment slots! 2019-03-02 01:42:33.049 [Error] Stack Trace:   at Intersect.Config.PaperdollOptions.Validate(EquipmentOptions equipment) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\PaperdollOptions.cs:line 95   at Intersect.Config.EquipmentOptions.Validate() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 55   at Intersect.Config.EquipmentOptions.OnDeserializedMethod(StreamingContext context) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 40 2019-03-02 01:42:33.049 [Error] Time: 3/2/2019 1:42:33 AM -------------------------------------------------------------------------------- 2019-03-02 13:23:40.444 [Error] Received unhandled exception from . 2019-03-02 13:23:40.452 [Error] Message: Exception has been thrown by the target of an invocation. 2019-03-02 13:23:40.452 [Error] Stack Trace:   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   at Newtonsoft.Json.Serialization.JsonContract.<>c__DisplayClass57_0.<CreateSerializationCallback>b__0(Object o, StreamingContext context)   at Newtonsoft.Json.Serialization.JsonContract.InvokeOnDeserialized(Object o, StreamingContext context)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.OnDeserialized(JsonReader reader, JsonContract contract, Object value)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Intersect.Options.LoadFromDisk() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\Options.cs:line 138   at Intersect.Server.ServerStart.Start(String[] args) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect.Server\Classes\Core\ServerStart.cs:line 51 2019-03-02 13:23:40.452 [Error] Stack Trace:   at Intersect.Config.PaperdollOptions.Validate(EquipmentOptions equipment) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\PaperdollOptions.cs:line 95   at Intersect.Config.EquipmentOptions.Validate() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 55   at Intersect.Config.EquipmentOptions.OnDeserializedMethod(StreamingContext context) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 40 2019-03-02 13:23:40.452 [Error] Time: 3/2/2019 1:23:40 PM -------------------------------------------------------------------------------- 2019-03-02 13:23:40.452 [Error] Inner Exception? 2019-03-02 13:23:40.452 [Error] Message: Config Error: Paperdoll item Armor does not exist in equipment slots! 2019-03-02 13:23:40.453 [Error] Stack Trace:   at Intersect.Config.PaperdollOptions.Validate(EquipmentOptions equipment) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\PaperdollOptions.cs:line 95   at Intersect.Config.EquipmentOptions.Validate() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 55   at Intersect.Config.EquipmentOptions.OnDeserializedMethod(StreamingContext context) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\EquipmentOptions.cs:line 40 2019-03-02 13:23:40.453 [Error] Time: 3/2/2019 1:23:40 PM -------------------------------------------------------------------------------- 2019-03-02 13:44:38.670 [Error] Received unhandled exception from . 2019-03-02 13:44:38.677 [Error] Message: Invalid property identifier character: {. Path '', line 1, position 1. 2019-03-02 13:44:38.678 [Error] Stack Trace:   at Newtonsoft.Json.JsonTextReader.ParseProperty()   at Newtonsoft.Json.JsonReader.ReadAndAssert()   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Intersect.Options.LoadFromDisk() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\Options.cs:line 138   at Intersect.Server.ServerStart.Start(String[] args) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect.Server\Classes\Core\ServerStart.cs:line 51 2019-03-02 13:44:38.678 [Error] Time: 3/2/2019 1:44:38 PM -------------------------------------------------------------------------------- 2019-03-02 13:44:47.215 [Error] Received unhandled exception from . 2019-03-02 13:44:47.223 [Error] Message: Invalid property identifier character: {. Path '', line 1, position 1. 2019-03-02 13:44:47.223 [Error] Stack Trace:   at Newtonsoft.Json.JsonTextReader.ParseProperty()   at Newtonsoft.Json.JsonReader.ReadAndAssert()   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Intersect.Options.LoadFromDisk() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\Options.cs:line 138   at Intersect.Server.ServerStart.Start(String[] args) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect.Server\Classes\Core\ServerStart.cs:line 51 2019-03-02 13:44:47.223 [Error] Time: 3/2/2019 1:44:47 PM -------------------------------------------------------------------------------- 2019-03-02 14:05:59.938 [Error] Received unhandled exception from . 2019-03-02 14:05:59.943 [Error] Message: Invalid property identifier character: . Path 'Equipment.Slots', line 34, position 6. 2019-03-02 14:05:59.943 [Error] Stack Trace:   at Newtonsoft.Json.JsonTextReader.ParseProperty()   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Intersect.Options.LoadFromDisk() in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect (Core)\Config\Options.cs:line 138   at Intersect.Server.ServerStart.Start(String[] args) in C:\Users\JC Snider\Desktop\AGD\Intersect-Engine\Intersect.Server\Classes\Core\ServerStart.cs:line 51 2019-03-02 14:05:59.943 [Error] Time: 3/2/2019 2:05:59 PM --------------------------------------------------------------------------------
PrettyPotatoo Posted March 4, 2019 Author Posted March 4, 2019 It still won't work even though i use commas :I Â
oOScuByOo Posted March 4, 2019 Posted March 4, 2019 could you send again the content of your server/ressources/config.json please ( all the content ^^ ) edit : If you use Username and pass for DB connection don't forget to cut off before posting x)
PrettyPotatoo Posted March 4, 2019 Author Posted March 4, 2019 Thank you for all your help I still do not know what was wrong but it is working now thanks. oOScuByOo 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now