Jump to content

JasonTM

Member
  • Content Count

    448
  • Joined

  • Last visited

  • Days Won

    33

JasonTM last won the day on March 16

JasonTM had the most liked content!

About JasonTM

  • Rank
    Hardened

Recent Profile Visitors

1409 profile views
  1. Hmm. If @ebayShopper still has the original code for this, then he should upload it here.
  2. JasonTM

    out of range in arrays

    I don't understand what you are trying to do. If you run that for loop you will get a zero denominator error because you are trying to access an element that does not exist. You have 2 elements in the array and you are trying to run the loop 4 times (from 0 to 3).
  3. JasonTM

    out of range in arrays

    Modify your for loop so you don't go out of range. for "_i" from 0 to (count _a - 1) do {
  4. You cannot localize and concatenate the strings server side. Doing that will localize to the server's location, not the client. The string names and arguments have to be sent to the client. I wrote a function for the remote messaging system that will detect localized strings and format them if they are sent as an array with arguments. https://github.com/worldwidesorrow/WICKED-AI/blob/master/dayz_code/compile/remote_message.sqf#L1-L37 Add %1 to the "Combo kill level" string and include the exclamation point. <Key ID="STR_CL_AC_GENERAL_SON"> <English>You killed the general son!</English> <Russian>Вы убили сына генерала!</Russian> </Key> <Key ID="STR_CL_AC_COMBO"> <English>Combo kill level %1!</English> <Russian>Комбо x %1!</Russian> </Key> I'm not quite sure of your code to send the messages. Rolling messages are not set up for multi-dimensional arrays so two messages will have to be sent. This code should work if I understand what you are trying to do. One message will appear over the top of the other instead of on one line. if (random 100 > 90) then { RemoteMessage = ["rollingMessages","STR_CL_AC_GENERAL_SON"]; (owner _player) publicVariableClient "RemoteMessage"; }; _newLvl = 333; // for example RemoteMessage = ["rollingMessages",["STR_CL_AC_COMBO",_newLvl]]; (owner _player) publicVariableClient "RemoteMessage";
  5. JasonTM

    ROB BANK

    Taking "full credit" for copy/pasting code? https://github.com/MigSDev5/BankRobery
  6. This code does not exist in WAI. That file only has 79 lines.
  7. This is where all of the updated files are: https://github.com/worldwidesorrow/Epoch-Server-Events There is a link at the top of the first post that says ">>>Download Here<<<".
  8. The mission marker colors are based on mission difficulty. If you want to change to AI type (Hero and Bandit), then change this block of code: https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L22-L27 To this: _color = call { if(_missionType == "MainHero") exitWith {"ColorRed"}; if(_missionType == "MainBandit") exitWith {"ColorGreen"}; }; Also change these: https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/airdrop_winorfail.sqf#L26-L31 https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/patrol_winorfail.sqf#L20-L25
  9. Go into scripts.log and post the kick here.
  10. Killzone Kid's Shuffle Plus function assumes that there is more than one element in an array.
  11. OK, it's because of the findSafePos count check. This is the fix. https://github.com/worldwidesorrow/WICKED-AI/commit/a20ae05e4df52ab2fad84c00e340cefa10f425bc
  12. If you have debug mode enabled, there should be entries for WAI. It helps to see where it is having an issue.
  13. If you only want to gain humanity, then just run the Bandit missions. Set this entry to 0. https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L128
  14. Fixed here. This only happens when you have debug mode turned on. https://github.com/worldwidesorrow/WICKED-AI/commit/7b4b0d976fc4d47893d412cb8582b6d913998373 You can also just replace the whole file.
  15. There's not really much I can do to address these issues if I don't have more information, like if there are any errors in the server rpt. There are generally 2 versions of WAI available, the "stable branch" and the "development branch". The stable branch is kept on f3cuk's github, currently version 2.2.5, here: https://github.com/f3cuk/WICKED-AI The development branch is on my github, version 2.2.6, here: https://github.com/worldwidesorrow/WICKED-AI As soon as all of the bugs are worked out of the dev branch, it moves to stable and I make a release announcement. What I see often is that people are mixing these files and that is causing it to break. If it breaks, I recommend checking to see that the files are not mixed, and ultimately re-installing and testing with default configuration. If errors persist, report them here with as much documentation as possible. If missions stop spawning after the initial limit is met, then there is an issue with mission data not clearing when a mission is completed. Specifically, the "missions running" variables are not being adjusted here: https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L191-L196
×
×
  • Create New...