Post by AndiNo on Jun 27, 2007 17:23:43 GMT -5
Good evening guys^^
As I told some of you yesterday (while playing KF on Geisterbahn) I have found a way to export the KF scripts and change them. That may not be a big deal to some or even most of the UT-editing-guys here. However it was a great discovery for me because now I am able to edit all of KF's inner workings.
I didn't want to broadcast this too much because I had some troubles with it. The first script-exporter sucked and dropped some parts of the scripts - resulting in zombies without a skin (they all had some greenish default skin on them). Luckily the UnrealEd built-in exporter was much better.
To make a long story short^^: I'm a noob to UT coding, however I have already some experience in C++ programing. This way I figured out how things worked (at least to some extent). To find out whether I really could change something (make a difference ) I wanted to fix a bug. The result: It worked
It's not much, but good as a beginning. I fixed the "Wave End Cash Bonus"-bug. Only the first player in the list received the bonus, all others were skipped. Although I thought that I would rather make a mistake than the KF Coding Team, it seems that the function responsible for giving out the bonus was, well, nearly total crap ;D
I tried it now with bots, although it should work with normal players, too. Now every player gets the bonus divided by the current (living?) player count as it was intended to be.
There is one downside however. Although the scripts compiled nearly without errors, there shouldn't have been ANY errors. The scripts exported with UED were much better than those from the other exporter, however they still don't seem to be perfect. When I compile the package KFGui it works, however all fonts in the game/menu are yellow instead of red. Dunno where this comes from...
That said I don't know how "secure" it is to give out these changed scripts. I don't want to make things worse than they are (maybe there are other things not working "below the surface") Maybe one time (when he returns) Alex will give me the scripts he used for compiling...
I will try to fix some other bugs, as the fixed code should be easily implemented into Alex's code if he hands it over. If there are people who really want to have this "patch" knowing that it "could" be worse, I could give it out though. AFAIK the server AND the client need to have that, otherwise there's an error. This makes distribution hard for players not being regular on this forum. (However I want to see if I can fix more bugs, otherwise I don't think releasing this small "patch" will be worth anything... -> that means I won't give it out with "only" that small fix)
Well, I guess that's all I wanted to say for now ^^
But wait, aren't there some other KF-Team members around here who also have the complete KF 2.1 code? Maybe you can hand it over to me, because I don't think you'll be doing much with it... ;D
Current changelog:
* [FIX] all surviving(!) players now get their fair share of the "Wave End Cash Bonus": every player gets the team-score divided by the player count
* [FIX] player-money and team-money can't fall below 0
* [FIX] healing yourself will not heal others standing in front of you
* [FIX] the last entry in the spawn-list with a chance of 1 now can spawn, too (therefore Medikits can now spawn, too)
* [FIX] players always get the starting cash set up by the server when joining the game
* [FIX] spectators can join if there are less spectators than MaxSpectators, even if the playerlimit is already reached
* [CHANGE] removed "ambientglow" from zombies
* [CHANGE] players that don't have a default KF player model selected will be kicked with an error message
* [NEW] healing other players gives 10 $
* [possible FIX] zombies don't stand around after killing a player
* [possible FIX] scoreboard showing duplicate player names
* [possible FIX] stalkers now uncloak on clients when their head is removed (some testing showed that it didn't work)
As I told some of you yesterday (while playing KF on Geisterbahn) I have found a way to export the KF scripts and change them. That may not be a big deal to some or even most of the UT-editing-guys here. However it was a great discovery for me because now I am able to edit all of KF's inner workings.
I didn't want to broadcast this too much because I had some troubles with it. The first script-exporter sucked and dropped some parts of the scripts - resulting in zombies without a skin (they all had some greenish default skin on them). Luckily the UnrealEd built-in exporter was much better.
To make a long story short^^: I'm a noob to UT coding, however I have already some experience in C++ programing. This way I figured out how things worked (at least to some extent). To find out whether I really could change something (make a difference ) I wanted to fix a bug. The result: It worked
It's not much, but good as a beginning. I fixed the "Wave End Cash Bonus"-bug. Only the first player in the list received the bonus, all others were skipped. Although I thought that I would rather make a mistake than the KF Coding Team, it seems that the function responsible for giving out the bonus was, well, nearly total crap ;D
I tried it now with bots, although it should work with normal players, too. Now every player gets the bonus divided by the current (living?) player count as it was intended to be.
There is one downside however. Although the scripts compiled nearly without errors, there shouldn't have been ANY errors. The scripts exported with UED were much better than those from the other exporter, however they still don't seem to be perfect. When I compile the package KFGui it works, however all fonts in the game/menu are yellow instead of red. Dunno where this comes from...
That said I don't know how "secure" it is to give out these changed scripts. I don't want to make things worse than they are (maybe there are other things not working "below the surface") Maybe one time (when he returns) Alex will give me the scripts he used for compiling...
I will try to fix some other bugs, as the fixed code should be easily implemented into Alex's code if he hands it over. If there are people who really want to have this "patch" knowing that it "could" be worse, I could give it out though. AFAIK the server AND the client need to have that, otherwise there's an error. This makes distribution hard for players not being regular on this forum. (However I want to see if I can fix more bugs, otherwise I don't think releasing this small "patch" will be worth anything... -> that means I won't give it out with "only" that small fix)
Well, I guess that's all I wanted to say for now ^^
But wait, aren't there some other KF-Team members around here who also have the complete KF 2.1 code? Maybe you can hand it over to me, because I don't think you'll be doing much with it... ;D
Current changelog:
* [FIX] all surviving(!) players now get their fair share of the "Wave End Cash Bonus": every player gets the team-score divided by the player count
* [FIX] player-money and team-money can't fall below 0
* [FIX] healing yourself will not heal others standing in front of you
* [FIX] the last entry in the spawn-list with a chance of 1 now can spawn, too (therefore Medikits can now spawn, too)
* [FIX] players always get the starting cash set up by the server when joining the game
* [FIX] spectators can join if there are less spectators than MaxSpectators, even if the playerlimit is already reached
* [CHANGE] removed "ambientglow" from zombies
* [CHANGE] players that don't have a default KF player model selected will be kicked with an error message
* [NEW] healing other players gives 10 $
* [possible FIX] zombies don't stand around after killing a player
* [possible FIX] scoreboard showing duplicate player names