Chalwk / HALO-SCRIPT-PROJECTS

:white_check_mark: Halo PC|CE - Add-ons for Phasor V2+ and SAPP :new_zealand:
Other
32 stars 13 forks source link

Zpocalypse [1.8] | #CUSTOM GAME #59

Closed Chalwk closed 4 years ago

Chalwk commented 5 years ago

Zpocalypse:

A custom Zombies Game designed for Team-Slayer game types.

Game Play Mechanics:

DL Link

Dark3211 commented 5 years ago

Bug

EventCallback >> OnPlayerDeath >> Lua Error: [string "Zpocalypse"]:556: bad argu ment #2 to 'rprint' (string expected, got nil)

This happens when you kill any human and if it's the last one, the game doesn't end.

Another mistake, or I don't know if it is, is that when the game starts and there are 3 or more players, there are always 2 zombies instead of 1, as I said I don't know if this is a mistake or not, but I inform you in case of Let it be.

Chalwk commented 5 years ago

Fixed (:

Dark3211 commented 5 years ago

The first error was corrected. but... I tried the script again with 10 players and at the start of the game there are 5 zombies and 5 humans I don't know if this is a mistake or so is the script configuration, if it is the script configuration, where i modify it so that there is only 1 zombie when starting the game?

Chalwk commented 5 years ago

This was not a mistake and there isn't a configuration option for it. However, I will make a configuration option for it...

Will update you here.

Chalwk commented 5 years ago

Oh wow. I totally forgot about this. Sorry, I've been so busy with other things. I'll get this done today!

Chalwk commented 5 years ago

Zombie Game has been updated with a new config option on line 49 "balance_teams" - which is OFF by default now.

Dark3211 commented 5 years ago

Bug

The zombie weapon falls

Chalwk commented 5 years ago

Fixed.

Chalwk commented 5 years ago

Updated again with changes to the message outputs. There are a couple of new config settings + tidied up some code.

Chalwk commented 5 years ago

Updated again with a bug fix.

Dark3211 commented 5 years ago

Hi! I don't want to bother you ... but it is possible to add:

[+] Human weapons settings.

Example: Human_Weapon [1] = "weapons \pistol\pistol"

Human_Weapon [2] = "weapons\sniper rifle\sniper rifle"

Human_Weapon [3] = "weapons\shotgun\shotgun"

Human_Weapon [4] = nil

[+] Without zombies.

If the only zombie leaves, a random (human) player is passed to the Zombie team after 5 seconds.

Msg = "The zombie is a coward and left, someone will be changed to take his place in ...% seconds%".

[+] Help the zombie.

If the only zombie is killed 7 or 8 times, a human (random) is passed to the Zombie team after 5 seconds to help him (This does not happen if there is more than 1 zombie).

Msg = "The zombie is very bad, someone will be changed to help you in ...% seconds%".

[+] Score Per Second. (This is not really necessary)

Human_Score = 2 - (Score Per Seconds)

Zombie_Score = 1 - (Score Per Seconds)

Thanks!

Chalwk commented 5 years ago

[bug fix]

Fixed a bug where humans would be assigned a skull when switching weapon.

@Dark3211 I'll try to implement that (:

Chalwk commented 5 years ago

[new feature]

You can now optionally toggle human weapon assignment on or off on a per-map basis. Humans can spawn with up to 4 weapons. See config section for details.

Chalwk commented 5 years ago

Updated with another bug fix and small tweaks.

Chalwk commented 5 years ago

[new feature]

Zombie Assistance: If enabled, a zombie that is killed 7 times consecutively will trigger a random human to be selected as a zombie to assist fellow zombies.

Dark3211 commented 5 years ago

Do not add the Score Per Second, I do not know what I thought when I made this request, I do not see the logic. :P

Chalwk commented 5 years ago

Beta V1.3 has been in development for the last 10 hours. I have rewritten a massive chunk of code and this comes with potentially a few bugs. If you want to test Beta V1.3 the download link is here:

beta v1.3

Click to View Changes

Beta V1.3 will be uploaded as a full release when it's bug-free.

Dark3211 commented 5 years ago

Zpocalypse (beta v1.2)

Bugs:

EventCallback >> OnTick >> Lua Error: [string "Zpocalypsev1.2"]:317: bad argument #1 to 'pairs' (table expected, got nil)

EventCallback >> OnGameStart >> Lua Error: [string "Zpocalypsev1.2"]:201: bad argument #1 to 'pairs' (table expected, got nil)

Dark3211 commented 5 years ago

Zpocalypse (beta v1.3) Bug:

EventCallback >> OnTick >> Lua Error: [string "Zpocalypsev1.3"]:1101: bad argument

3 to 'gsub' (string/function/table expected)

Chalwk commented 5 years ago

Beta v1.3 will be released in a couple of hours (hopefully bug-free). Many changes to the message outputs. Performance improvements. Bug fixes. Epicness.

Chalwk commented 5 years ago

Beta v1.3 released.

Dark3211 commented 5 years ago

Bug

The human's weapons are not assigned.

Chalwk commented 5 years ago

I can't seem to reproduce that bug. It is working fine for me. Does weapon assignment not work on all maps? Can you upload your version of the script?

Dark3211 commented 5 years ago

I have the current version of the script, maybe I modified something wrong, tomorrow I will download the script and try again

Dark3211 commented 5 years ago

I tried again and it does the same on some maps if I change my weapons, but in most I have reserve weapons (pistol and assault rifle).

Also ... the "cured zombie" function stopped working.

Sometimes this error is reproduced:

stack traceback:

[C]: in function '__newindex'
[string "Zpocalypsebetav1.3"]:788: in function 'SwitchTeam'
[string "Zpocalypsebetav1.3"]:1068: in function 'setTeam'
[string "Zpocalypsebetav1.3"]:1024: in function 'sortPlayers'
[string "Zpocalypsebetav1.3"]:431: in function <[string "Zpocalypsebetav1.3"]:316> 
Chalwk commented 5 years ago

Updated to v1.4. Fixed zombie cure and a few other things.

I was unable to reproduce the human weapon assignment bug that you mentioned. Are you running it on stock maps? What specific maps does weapon assignment fail and when does it fail? Does it fail after the pre-game countdown has elapsed and/or when a human spawns?

Chalwk commented 5 years ago

Updated again to fix an issue that was causing a server crash.

Dark3211 commented 5 years ago

It works, sorry the mistake was mine.

Dark3211 commented 5 years ago

The human's weapon assignment works, the mistake was mine.

But I have this error: (Add 2 maps, so the error lines may be affected)

stack traceback:

[C]: in function '__newindex'
[string "Zpocalypse1.4"]:792: in function 'SwitchTeam'
[string "Zpocalypse1.4"]:1072: in function 'setTeam'
[string "Zpocalypse1.4"]:1028: in function 'sortPlayers'
[string "Zpocalypse1.4"]:434: in function <[string "Zpocalypse1.4"]:319>

(This occurs when a player enters just 1 second before the game starts).

Chalwk commented 5 years ago

Updated to Beta V 1.5 to fix the error reported above.

Chalwk commented 5 years ago

Updated to Full Release (Version 1.0)

Changes: One bug fix. As long as there are no more bugs this mod will no longer be developed.

Dark3211 commented 5 years ago

Hi. Were these errors corrected in the latest updates?

Errors:

Zombie Assistance: This still runs when there are more than 2 zombies.

No zombies: (This happens sometimes) When there are many zombies and one goes out, the sequence of "No Zombies" starts and if the last human is infected, the game does not end.

(This was tested with 13 players)

Chalwk commented 5 years ago

Fixed all of the above.

Dark3211 commented 5 years ago

New Errors:

(This occurs when it affects humans and the game does not end)

stack traceback:

[C]: in function '__le'
[string "Zpocalypsev1.1"]:686: in function <[string "Zpocalypsev1.1"]:640>

(This happens when sapp surcharge and there are players)

stack traceback:

[C]: at 0x10066090
[C]: in function 'get_var'
[string "Zpocalypsev1.1"]:296: in function <[string "Zpocalypsev1.1"]:276>
Chalwk commented 5 years ago

Whoops. Sorry about that. Fixed both errors.

Dark3211 commented 5 years ago

Option to disable "Disabling Kill Messages" or the elimination of this function, since Sapp does not support "unicode" letters and player names look bad.

Some names look like this: (Example) "??@#?$? was killed by ??•«???»???"

Please.

Dark3211 commented 5 years ago

I know it's a lot to ask for this and it can be even annoying, but I liked it when the script was simpler.

Could you eliminate all this ?:

zombie_vs_human_lastman = "%victim% was Zombified by %killer%. %lastman% is the Last Human Alive!"

human_falldamage = "%victim% died and was Zombified!",

human_falldamage_lastman = "%victim% died and was Zombified. %lastman% is the Last Human Alive!"

zombie_falldamage = "%victim% died"

human_distancedamage = "%victim% fell and was Zombified!",

human_distancedamage_lastman = "%victim% fell and was Zombified. %lastman% is the Last Human Alive!",

zombie_distancedamage = "%victim% fell and died"

zombie_suicide = "%victim% committed suicide"

human_vs_zombie = "%victim% was killed by %killer%"

human_suicide = "%victim% committed suicide and was Zombified!"

human_suicide_lastman = "%victim% committed suicide. %lastman% is the Last Human Alive!"

Only the simple ones remain:

on_zombified = "%victim% was Zombified" (This is shown either when the human commits suicide, is infected, died, etc ... without replacing the original messages of the game)

last_man = "%lastman% is the Last Human Alive!"

Thanks!

Chalwk commented 5 years ago

Option to disable "Disabling Kill Messages" or the elimination of this function, since Sapp does not support "unicode" letters and player names look bad.

Some names look like this: (Example) "??@#?$? was killed by ??•«???»???"

Please.

Player names will appear normal if you convert to ANSI. Open the script in Notepad++ and click the Encoding Tab. Select "Convert to ANSI". Save. Reload script.

Chalwk commented 5 years ago

I know it's a lot to ask for this and it can be even annoying, but I liked it when the script was simpler.

Could you eliminate all this ?:

zombie_vs_human_lastman = "%victim% was Zombified by %killer%. %lastman% is the Last Human Alive!"

human_falldamage = "%victim% died and was Zombified!",

human_falldamage_lastman = "%victim% died and was Zombified. %lastman% is the Last Human Alive!"

zombie_falldamage = "%victim% died"

human_distancedamage = "%victim% fell and was Zombified!",

human_distancedamage_lastman = "%victim% fell and was Zombified. %lastman% is the Last Human Alive!",

zombie_distancedamage = "%victim% fell and died"

zombie_suicide = "%victim% committed suicide"

human_vs_zombie = "%victim% was killed by %killer%"

human_suicide = "%victim% committed suicide and was Zombified!"

human_suicide_lastman = "%victim% committed suicide. %lastman% is the Last Human Alive!"

Only the simple ones remain:

on_zombified = "%victim% was Zombified" (This is shown either when the human commits suicide, is infected, died, etc ... without replacing the original messages of the game)

last_man = "%lastman% is the Last Human Alive!"

Thanks!

Done.

DL Link (Extended)

DL Link (Simple)

There was 1 bug fix as well (for both)

Dark3211 commented 5 years ago

(Zpocalypse Simple v1.3) Bugs:

Zombie Cured does not work.

Last Man speed and damage does not work. (This was already happening but I never reported it)

Chalwk commented 5 years ago

Fixed.

Dark3211 commented 5 years ago

Zpocalypse (Simple v1.4)

Errors:

Zombies Assistance continues to run even if there are already 2 or more zombies.

Sometimes, when infecting LastMan, the game does not end (rarely occurs).

LastMan's speed is not assigned (damage already works)

Edit

Add [+]: Lastman Gets Infinite Ammo (without reloading) "mag", I put it but for some reason the shooting animation and the bullets did not look :v

Dark3211 commented 4 years ago

Hello. Will the errors in the script not be corrected?

I solved 2 errors on my own.

Resolved:

Zombie Assistance was still working even if there were already 2 or more zombies.

Lastman was not assigned speed.

Without resolving: (I couldn't, I don't know much about this really)

Sometimes, when infecting lastman, the game did not end.

Dark3211 commented 4 years ago

Well, I realized that the mistake that sometimes the game does not end when it infects the Lastman, occurs when players leave, whether they are human or zombie and the game is in progress.

Chalwk commented 4 years ago

My sincerest apologies for the long delay on this update.

Bug Fixes in Version 1.5

RE: "sometimes, when infecting the last man, the game does not end."

Chalwk commented 4 years ago

If you experience any issues with this script please be as descriptive as possible when reporting any bugs. For example, under what circumstance causes the issue? I have not been able to reproduce the problem whereby the game doesn't end after the last man is infected. As far as I can tell this is working correctly. Then again, some errors can only be reproduced in a production server environment as many bugs are only encountered circumstantially. I looked very hard at the functions responsible for setting the last man and ending the game and I cannot see how such a circumstance could exist. Clearly I am missing something so I need YOUR help to figure this out. I do not run this script on a public server myself and so, therefore, cannot monitor a full session for bugs.

Chalwk commented 4 years ago

Updated to fix the error mentioned above. Please let me know if this resolves the issue.

Download link at top of this page in the Ticket Descriptor.

Dark3211 commented 4 years ago

Hi... Well I don't know exactly why this error occurs, but I solved it with an event, I don't have problems anymore.

Chalwk commented 4 years ago

@Dark3211 Can you explain what you did to solve it? That would be very helpful.

Chalwk commented 4 years ago

Just FYI. The latest update should have fixed the issue. I came to the realization shortly I posted my third-to-last post.