Official Soldat Forums
Server Talk => Scripting Releases => Topic started by: Gizd on January 30, 2009, 07:07:08 am
-
Script Name: Trenchwar Domination
Author: Gizd
Core Version: 2.6.5
Full Description:
Goal of game is to hold teritory or cap.
ZIP contains 2 versions of script, version A displays dominance as team's score, version B displays it on screen and team scores are like in normal ctf(flag captures).
Stuff is has(aka features):
- mines (you can pm me if they're too powerfull)
- strike (you can pm me if it's too powerfull)
- of course a domination calculating system(it's simple...) etc
- you can use any bot as bomber
- you can make your own strike(it's confusing but could be harder)
- some more things I don't remember...
Some screens(from older version but those things didn't change):
Screen 1 (http://img338.imageshack.us/img338/7549/screenshot09042601.png)
Screen 2 (http://img527.imageshack.us/img527/8237/screenshot09042602.png)
Screen 3 (http://img525.imageshack.us/img525/458/screenshot09042603.png)
Screen 4 (http://img339.imageshack.us/img339/7892/screenshot09042604.png)
Screen 5 (http://img23.imageshack.us/img23/8797/screenshot09042606.png)
Report any bugs/issues/errors/problems.
-
Glad you released it ;) It's basically the same as the old domination scripts except that it works better.
-
Didn't Avarax make a version of this or something?
Everybody likes screenies xD
-
1. Avarax script is buggy and old.
2. My script doesn't have anything common with his script(except name and purpose).
-
Where's the bot file ?
-
Read settings at top of .pas file :P
Script updated(I found a bug while making screens)
Added screens(you don't need more)
-
What's the purpose of doing ThreadFunc to checkteams and addbot? Why not just do it in the same thread with apponidle?
-
What's the purpose of doing ThreadFunc to checkteams and addbot? Why not just do it in the same thread with apponidle?
To make it faster, I don't like delay.
-
So I can just rename a whatever bot and it will work ?
nvm
-
Yes
Correction: bot file must have same name as bot in-game, ie. bot Lol can't have file Omg.bot
-
Too bad you are using ThreadFunc
-
Why?
I can make version without it if you wish.
-
I can make version without it if you wish.
No thanks. I already made my own TW script. (o (http://i130.photobucket.com/albums/p262/xmripper/tw1.png).0) (http://i130.photobucket.com/albums/p262/xmripper/tw2.png)
-
ThreadFunc is very unstable on most operating systems. You should either not use it or make sure that it's only being used every 2 seconds or so (and without the sleep() function) so that no more than one ThreadFunc is running at a time.
It's good to see that my basic idea is being adapted though and brought to a more stable and easier to handle shape. However, I'd appreciate some credits though for basically copying the idea of my original script ;D.
-
Nice script
Too bad you are using ThreadFunc
There is only one, simple procedure threaded, called only when players votekick bombing bot, what doesn't often. Threadfunc is so harmless there.
edit1
I saw the script before update, it used threadfunc only once.
-
If somebody has problems w/ threads, it'd be nice to have an option up top or somewhere to disable the threadedness of it.
-
Pack now contains 2 scripts: TW and TWntf(no threadfunc)
PS. Ava, I added 'idea by Avarax' to script :)
-
How I can raise score limit ?
-
Team score is domination percent, but you can change DominationIncrease(or however its named) to make game end faster(lower value)/slower(higher value).
Btw. I tried to run script with threadfunc on Linux, and it was failure, so now I know that using it in pub scripts is bad idea.
-
Team score is domination percent, but you can change DominationIncrease(or however its named) to make game end faster(lower value)/slower(higher value).
Btw. I tried to run script with threadfunc on Linux, and it was failure, so now I know that using it in pub scripts is bad idea.
Please copy-paste what EXACTLY I must change.
DominationInterval, got it
-
Script has been updated to 2.6.4 (but can be used on 2.6.3 also).
PS. Now you don't even have to specify 'bomber' bot. Script can load random bot from your bots/ folder(of course you need to have at least 1 bot file there...)
-
Added strike-making
Fixed mine explosions, some strike stuff and some other stuff so you should update it...
-
Could you make the script to spawn some players behind the enemy line with parachutes?
-
I forgot to release v2 so here it goes. It's much better so I recommend to update if some uses this anyway :P
-
This is the latest version?
And what is the difference between A and B?
-
ZIP contains 2 versions of script, version A displays dominance as team's score, version B displays it on screen and team scores are like in normal ctf(flag captures).
Yes, it's the latest.
-
So it shows in ainstrike chat in version B on the screen?
And this is the last version that will be yet.
-
Version A displays domination % as team score(caps).
I'll update it when new soldatserver comes out.
-
I have a problem!
09-11-17 21:09:05
09-11-17 21:09:05 kill/point/capture limit changed to 100
09-11-17 21:09:05 Bot file Bomber not found
09-11-17 21:09:05 TW >>> Error while adding bot
09-11-17 21:09:05 TW Cold Morning by VirtualTT
09-11-17 21:09:05 Realistic Mode ON
-
Make a Bomber.bot file or change const in script to a bot you have(or you can just leave it and have a random bot as spec...)
-
Zub whether the bot and put it here and tell me where to give!
-
1. Select the Terminator.bot file in bots folder
2. Press ctrl + c then ctrl + v
3. Edit the copied file with notepad
4. Change bot name to Bomber
5. Save and close the file
6. Change file name to Bomber.bot
-
ok
From: November 20, 2009, 07:09:17 am
A to co znaczy ?? And what does that mean??
09-11-17 21:09:05 kill/point/capture limit changed to 100
-
ok
From: November 20, 2009, 07:09:17 am
A to co znaczy ?? And what does that mean??
09-11-17 21:09:05 kill/point/capture limit changed to 100
Maybe that kill/point/capture limit changed to 100?
-
Hi
I've a question, I uploaded your script on my server and I wanna know when the strikes comes, or what's the requeriment for /strike command works
Certainly, good work bro!!! It's a very good script!
-
and then? can u response my question¿?
-
Strike command is /strike a/b (a for alpha side, b for bravo). I stopped developing this script for public and I haven't made any changelog so I don't really know how strike works in this version and I'm too lazy to look at this code, sorry.
-
ahh ok, it doesn't matter, I guess that strikes are aleatory with help of luck
-
reupload?
-
Oh surprise, Soldat Central went down. Uploaded(I hope it's the right file...).
-
Gizd, I started using your script for my TW server. It's nice but there seems to be a bug. Please have a look here: http://www.realsold.org/index.php?topic=4416.0
-
Attachment updated(first post)(v2.1.1a / v2.3.2b):
- new constantMinMineDist= 150; //minimal distance from flag(and flag spawn) where a mine can be placed
- you need to be away from both the flag and it's spawn to plant a mine now
Thanks for bug submission.
-
Hm. I know that this is an old topic but seeing as a minor bug such as flags being mineable was enough reason to bring it up last time I suppose it's more than justified for me to do the same.
I've been playing quite frequently at Leo's TW server and sometimes the script seems to misjudge the position of alpha's and bravo's bases, which makes it act like one of the flags are situated in the middle of map and the other flag at a point way out of sight from the actual battlefield.
When this occurs the airstrikes can start somewhere in the middle (or even further from the intended place) of the map and it just keeps on bombing for longer than the end of the map, right across the spawnpoint for one of the teams and into the abyss. The strike also might be stretched so it covers more than the map on both sides, but I'm not really sure about that.
This bug however also means that domination is falsely calculated since the script thinks that one team are always closer to enemy territory than they really are. In order to win a game or even achieve tie one of the teams will usually have to score at least 2-0 in caps or hold the enemies' closest sidebunker for most of the game. Just holding the middle of map will result in constantly losing domination for the team that's suffering from the domination bug.
Especially annoying is that this bug can go on for many maps until it goes back to normal, as the script is running in a circle independantly of the server's map cycle, thus destroying the balance in a lot of games in a row.
-
I made a quick makeshift probably-fix for version B(It's on Leo's iirc).
Bug identified thanks to Falcon. Update coming soon.
First post updated with updated script.
v2.3.4b and v2.1.3a
-
Medic does not get the correct amount of mines, since he earns points for healing, too. Better keep a record of kills yourself.