Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: Gizd on January 30, 2009, 07:07:08 am

Title: Trenchwar Domination v2
Post 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.
Title: Re: Trenchwar Domination
Post by: zakath on January 30, 2009, 07:15:40 am
Glad you released it ;) It's basically the same as the old domination scripts except that it works better.
Title: Re: Trenchwar Domination
Post by: DorkeyDear on January 30, 2009, 03:54:49 pm
Didn't Avarax make a version of this or something?

Everybody likes screenies xD
Title: Re: Trenchwar Domination
Post by: Gizd on January 31, 2009, 04:04:01 am
1. Avarax script is buggy and old.
2. My script doesn't have anything common with his script(except name and purpose).
Title: Re: Trenchwar Domination
Post by: Leo on January 31, 2009, 04:58:29 am
Where's the bot file ?
Title: Re: Trenchwar Domination
Post by: Gizd on January 31, 2009, 05:03:23 am
Read settings at top of .pas file :P

Script updated(I found a bug while making screens)

Added screens(you don't need more)
Title: Re: Trenchwar Domination
Post by: iDante on January 31, 2009, 05:15:27 am
What's the purpose of doing ThreadFunc to checkteams and addbot? Why not just do it in the same thread with apponidle?
Title: Re: Trenchwar Domination
Post by: Gizd on January 31, 2009, 05:20:39 am
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.
Title: Re: Trenchwar Domination
Post by: Leo on January 31, 2009, 05:24:19 am
So I can just rename a whatever bot and it will work ?
nvm
Title: Re: Trenchwar Domination
Post by: Gizd on January 31, 2009, 05:27:15 am
Yes
Correction: bot file must have same name as bot in-game, ie. bot Lol can't have file Omg.bot
Title: Re: Trenchwar Domination
Post by: xmRipper on January 31, 2009, 05:38:55 am
Too bad you are using ThreadFunc
Title: Re: Trenchwar Domination
Post by: Gizd on January 31, 2009, 06:53:24 am
Why?
I can make version without it if you wish.
Title: Re: Trenchwar Domination
Post by: xmRipper on January 31, 2009, 08:12:12 am
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)
Title: Re: Trenchwar Domination
Post by: Avarax on January 31, 2009, 09:27:12 am
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.
Title: Re: Trenchwar Domination
Post by: tk on January 31, 2009, 09:30:55 am
Nice script
Quote
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.
Title: Re: Trenchwar Domination
Post by: DorkeyDear on January 31, 2009, 02:39:39 pm
If somebody has problems w/ threads, it'd be nice to have an option up top or somewhere to disable the threadedness of it.
Title: Re: Trenchwar Domination
Post by: Gizd on January 31, 2009, 02:52:37 pm
Pack now contains 2 scripts: TW and TWntf(no threadfunc)

PS. Ava, I added 'idea by Avarax' to script :)
Title: Re: Trenchwar Domination
Post by: Leo on February 03, 2009, 08:33:24 am
How I can raise score limit ?
Title: Re: Trenchwar Domination
Post by: Gizd on February 03, 2009, 08:53:09 am
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.
Title: Re: Trenchwar Domination
Post by: Leo on February 03, 2009, 12:33:24 pm
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
Title: Re: Trenchwar Domination 2.6.4 Update
Post by: Gizd on April 25, 2009, 08:34:13 am
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...)
Title: Re: Trenchwar Domination v1.1
Post by: Gizd on April 26, 2009, 01:09:40 pm
Added strike-making
Fixed mine explosions, some strike stuff and some other stuff so you should update it...
Title: Re: Trenchwar Domination v1.1
Post by: SuperSissi on May 30, 2009, 02:19:42 pm
Could you make the script to spawn some players behind the enemy line with parachutes?
Title: Re: Trenchwar Domination v2
Post by: Gizd on July 13, 2009, 02:15:08 pm
I forgot to release v2 so here it goes. It's much better so I recommend to update if some uses this anyway :P
Title: Re: Trenchwar Domination v2
Post by: dominikkk26 on November 06, 2009, 08:02:37 am
   
This is the latest version?
And what is the difference between A and B?
Title: Re: Trenchwar Domination v2
Post by: Gizd on November 06, 2009, 09:40:21 am
Quote
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.
Title: Re: Trenchwar Domination v2
Post by: dominikkk26 on November 06, 2009, 01:24:48 pm
So it shows in ainstrike chat in version B on the screen?
And this is the last version that will be yet.
Title: Re: Trenchwar Domination v2
Post by: Gizd on November 06, 2009, 04:26:53 pm
Version A displays domination % as team score(caps).

I'll update it when new soldatserver comes out.
Title: Re: Trenchwar Domination v2
Post by: dominikkk26 on November 19, 2009, 10:02:14 am
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
Title: Re: Trenchwar Domination v2
Post by: Gizd on November 19, 2009, 10:21:20 am
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...)
Title: Re: Trenchwar Domination v2
Post by: dominikkk26 on November 19, 2009, 12:57:18 pm
Zub whether the bot and put it here and tell me where to give!
Title: Re: Trenchwar Domination v2
Post by: Gizd on November 19, 2009, 01:44:38 pm
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
Title: Re: Trenchwar Domination v2
Post by: dominikkk26 on November 20, 2009, 06:50:33 am
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
Title: Re: Trenchwar Domination v2
Post by: Gizd on November 20, 2009, 02:18:29 pm
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?
Title: Re: Trenchwar Domination v2
Post by: KEEN on January 20, 2010, 09:49:11 am
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!
Title: Re: Trenchwar Domination v2
Post by: KEEN on January 22, 2010, 02:28:39 pm
and then? can u response my question¿?
Title: Re: Trenchwar Domination v2
Post by: Gizd on January 24, 2010, 02:04:47 am
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.
Title: Re: Trenchwar Domination v2
Post by: KEEN on January 25, 2010, 08:08:42 am
ahh ok, it doesn't matter, I guess that strikes are aleatory with help of luck
Title: Re: Trenchwar Domination v2
Post by: duz on June 14, 2011, 06:13:49 pm
reupload?
Title: Re: Trenchwar Domination v2
Post by: Gizd on June 15, 2011, 12:06:39 pm
Oh surprise, Soldat Central went down. Uploaded(I hope it's the right file...).
Title: Re: Trenchwar Domination v2
Post by: Leo on June 24, 2011, 05:17:29 am
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
Title: Re: Trenchwar Domination v2
Post by: Gizd on June 25, 2011, 04:58:17 am
Attachment updated(first post)(v2.1.1a / v2.3.2b):
- new constant
Code: [Select]
MinMineDist= 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.
Title: Re: Trenchwar Domination v2
Post by: NamelessWolf on November 12, 2011, 07:37:07 pm
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.
Title: Re: Trenchwar Domination v2
Post by: Gizd on November 17, 2011, 01:09:40 pm
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
Title: Re: Trenchwar Domination v2
Post by: TheOne on November 20, 2011, 08:36:23 am
Medic does not get the correct amount of mines, since he earns points for healing, too. Better keep a record of kills yourself.