Author Topic: Trenchwar Domination v2  (Read 12494 times)

0 Members and 1 Guest are viewing this topic.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Trenchwar Domination v2
« 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
Screen 2
Screen 3
Screen 4
Screen 5

Report any bugs/issues/errors/problems.
« Last Edit: November 17, 2011, 03:22:32 pm by Gizd »

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Trenchwar Domination
« Reply #1 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.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Trenchwar Domination
« Reply #2 on: January 30, 2009, 03:54:49 pm »
Didn't Avarax make a version of this or something?

Everybody likes screenies xD

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #3 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).
« Last Edit: January 31, 2009, 04:19:14 am by Gizd »

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Trenchwar Domination
« Reply #4 on: January 31, 2009, 04:58:29 am »
Where's the bot file ?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #5 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)
« Last Edit: January 31, 2009, 05:14:49 am by Gizd »

Offline iDante

  • Veteran
  • *****
  • Posts: 1966
Re: Trenchwar Domination
« Reply #6 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?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #7 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.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Trenchwar Domination
« Reply #8 on: January 31, 2009, 05:24:19 am »
So I can just rename a whatever bot and it will work ?
nvm
« Last Edit: January 31, 2009, 05:27:21 am by Leo »

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #9 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

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Trenchwar Domination
« Reply #10 on: January 31, 2009, 05:38:55 am »
Too bad you are using ThreadFunc
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #11 on: January 31, 2009, 06:53:24 am »
Why?
I can make version without it if you wish.

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Trenchwar Domination
« Reply #12 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.0)
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Trenchwar Domination
« Reply #13 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.
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Trenchwar Domination
« Reply #14 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.
« Last Edit: January 31, 2009, 02:58:25 pm by tk »

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Trenchwar Domination
« Reply #15 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.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #16 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 :)
« Last Edit: January 31, 2009, 03:14:33 pm by Gizd »

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Trenchwar Domination
« Reply #17 on: February 03, 2009, 08:33:24 am »
How I can raise score limit ?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination
« Reply #18 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.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Trenchwar Domination
« Reply #19 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
« Last Edit: February 03, 2009, 12:44:05 pm by Leo »

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination 2.6.4 Update
« Reply #20 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...)
« Last Edit: April 25, 2009, 08:42:25 am by Gizd »

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v1.1
« Reply #21 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...

Offline SuperSissi

  • Major(1)
  • Posts: 12
Re: Trenchwar Domination v1.1
« Reply #22 on: May 30, 2009, 02:19:42 pm »
Could you make the script to spawn some players behind the enemy line with parachutes?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #23 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

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Trenchwar Domination v2
« Reply #24 on: November 06, 2009, 08:02:37 am »
   
This is the latest version?
And what is the difference between A and B?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #25 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.

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Trenchwar Domination v2
« Reply #26 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.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #27 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.

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Trenchwar Domination v2
« Reply #28 on: November 19, 2009, 10:02:14 am »
I have a problem!

09-11-17 21:09:05 
  • Compilation Complete.

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

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #29 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...)

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Trenchwar Domination v2
« Reply #30 on: November 19, 2009, 12:57:18 pm »
Zub whether the bot and put it here and tell me where to give!

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #31 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

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Trenchwar Domination v2
« Reply #32 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
« Last Edit: November 20, 2009, 07:09:17 am by dominikkk26 »

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #33 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?

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Trenchwar Domination v2
« Reply #34 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!

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Trenchwar Domination v2
« Reply #35 on: January 22, 2010, 02:28:39 pm »
and then? can u response my question┬┐?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #36 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.

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Trenchwar Domination v2
« Reply #37 on: January 25, 2010, 08:08:42 am »
ahh ok, it doesn't matter, I guess that strikes are aleatory with help of luck

Offline duz

  • Flagrunner
  • ****
  • Posts: 586
  • Old nick: HunterZ
Re: Trenchwar Domination v2
« Reply #38 on: June 14, 2011, 06:13:49 pm »
reupload?
2002-2007 / 2009-2012
HunterZ The Movie I / II / III
Awards

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #39 on: June 15, 2011, 12:06:39 pm »
Oh surprise, Soldat Central went down. Uploaded(I hope it's the right file...).

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Trenchwar Domination v2
« Reply #40 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

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #41 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.

Offline NamelessWolf

  • Soldier
  • **
  • Posts: 115
Re: Trenchwar Domination v2
« Reply #42 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.
« Last Edit: November 12, 2011, 07:42:22 pm by NamelessWolf »

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Trenchwar Domination v2
« Reply #43 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
« Last Edit: November 17, 2011, 03:24:22 pm by Gizd »

Offline TheOne

  • Soldier
  • **
  • Posts: 208
Re: Trenchwar Domination v2
« Reply #44 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.