Jump to content

orwar never happen

Closed 1.5.1 1.5.2

Electrik
Electrik

Posted

Hi, orwar event never start, but it turned true 

"OreWar": {
      "Enable Event": true,

and if I only set this event to true, I have an error when reloading the plugin

Rainey

Posted

Can you please send me your config file?

Rainey

Posted

Try and change line 455 from this:

var value = listWithKeys[Random.Range(1, listWithKeys.Count)];

to this: 

var value = listWithKeys[Random.Range(0, listWithKeys.Count)];

It's getting confused when only 1 event is enabled because the index of that event (0) was less than what the random number generator was starting at (1). Changing the line above should fix the issue. Please let me know how it goes and I will submit an official update. 

Thank you for letting me know! 

Rainey

Posted

Changed Status from Pending to Work in Progress

Rainey

Posted

Changed Fixed In to 1.5.2

Rainey

Posted

Changed Status from Work in Progress to Pending

Rainey

Posted

Changed Status from Pending to Work in Progress

Rainey

Posted

I just released V1.5.2 which should fix this error, thank you again for letting me know and please let me know if you have any more problems. 

Electrik

Posted

everything is working fine now! thank you

  • Love 1
Rainey

Posted

Awesome! Thank you for letting me know, please let me know if you encounter any more issues. 🙂

Rainey

Posted

Changed Status from Work in Progress to Closed

1.4m

Downloads

Total number of downloads.

7k

Customers

Total customers served.

104.9k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.