Can I Please Get Scripting Help?
-
Bluedrake42
- Posts: 1933
- Joined: 2009-07-23 17:52
Can I Please Get Scripting Help?
I really need these scripts made for my server
I don't have time to make them myself
Please, if you delete my threads at least tell me why
If someone could please help me with python scripting for my server I'd appreciate it
I will pay
Edit: For some reason this thread didn't get deleted, anyways here's the info of what I want from the last thread
I want an automated map vote system. The system should track which maps have been played in the rotation then choose 3 unplayed maps, start a map vote, tally the votes, and then set the next map to the map that won the vote (or randomly select one of them if it was a tie)
I don't have time to make them myself
Please, if you delete my threads at least tell me why
If someone could please help me with python scripting for my server I'd appreciate it
I will pay
Edit: For some reason this thread didn't get deleted, anyways here's the info of what I want from the last thread
I want an automated map vote system. The system should track which maps have been played in the rotation then choose 3 unplayed maps, start a map vote, tally the votes, and then set the next map to the map that won the vote (or randomly select one of them if it was a tie)
Last edited by Bluedrake42 on 2013-07-28 15:14, edited 1 time in total.
-
Conman51
- Posts: 2628
- Joined: 2008-05-03 00:27
Re: Can I Please Get Scripting Help?
There already is AfterDunes scripts which come with the voting and shit like that. Unless your looking for something more. Even then you can probbaly ask AfterDune to put it in his program if its a good enough idea.
-
BloodyDeed
- Retired PR Developer
- Posts: 4452
- Joined: 2008-05-07 17:43
Re: Can I Please Get Scripting Help?
I recommend you tell us at least some basics what this is about.
It's quite a difference if you want something to a) correct your code b) write a couple of lines c) program an own gamemode
If you have any questions regarding AD-Framework go ahead, I took over the project as a maintainer.
It's quite a difference if you want something to a) correct your code b) write a couple of lines c) program an own gamemode
If you have any questions regarding AD-Framework go ahead, I took over the project as a maintainer.

-
piepieonline
- Retired PR Developer
- Posts: 433
- Joined: 2009-07-22 00:41
Re: Can I Please Get Scripting Help?
That was from the other place he posted this.I want an automated map vote system. The system should track which maps have been played in the rotation then choose 3 unplayed maps, start a map vote, tally the votes, and then set the next map to the map that won the vote (or randomly select one of them if it was a tie)

-
brezmans
- Posts: 661
- Joined: 2011-07-20 10:08
Re: Can I Please Get Scripting Help?
BlueDrake, this should be possible to do within the AD Framework.
Writing out the code could take a few days, but as a thought experiment, the code should at least contain these things:
1. Create a maplist of previously played maps, you can pull these from the ADF logs or just create a new file specifically for this script, ex. MapsPlayed.con
2. Set your autovote conditions: when do you want the vote to be triggered? After a certain amount of time has passed or when one team has reached a certain threshold of tickets? Or both?
-> Set conditions depending on gamemode: for insurgents you'll need a seperate condition, the same applies for the amount of tickets left in skirmishes
3. Arrange your voting options: when the vote is called, do you want multiple votes or just one vote?
-> Vote between gamemodes first?
-> Vote between completely random maps?
4. When the vote is triggered, where does the script get its maplist from? Do you want to scramble the current list or do you want to have a file with only certain maps on certain layers?
5. When the vote finishes, let the script set the next map with layer and reset all variables used.
Things that will need to be addressed:
- maps where the enemy is capped out and they're bleeding really fast, usually not enough time for a vote
- ties between maps during a vote, re-vote or select random map? With the timer going down or the other team losing tickets fast, you need to find a solution here in case the vote isn't finished.
And so forth. If you don't know Python, this will be a daunting task to implement. But if you're eager to learn, a project like this will make you acquainted with a lot of how Python works and how the bf2 scripting works.
Writing out the code could take a few days, but as a thought experiment, the code should at least contain these things:
1. Create a maplist of previously played maps, you can pull these from the ADF logs or just create a new file specifically for this script, ex. MapsPlayed.con
2. Set your autovote conditions: when do you want the vote to be triggered? After a certain amount of time has passed or when one team has reached a certain threshold of tickets? Or both?
-> Set conditions depending on gamemode: for insurgents you'll need a seperate condition, the same applies for the amount of tickets left in skirmishes
3. Arrange your voting options: when the vote is called, do you want multiple votes or just one vote?
-> Vote between gamemodes first?
-> Vote between completely random maps?
4. When the vote is triggered, where does the script get its maplist from? Do you want to scramble the current list or do you want to have a file with only certain maps on certain layers?
5. When the vote finishes, let the script set the next map with layer and reset all variables used.
Things that will need to be addressed:
- maps where the enemy is capped out and they're bleeding really fast, usually not enough time for a vote
- ties between maps during a vote, re-vote or select random map? With the timer going down or the other team losing tickets fast, you need to find a solution here in case the vote isn't finished.
And so forth. If you don't know Python, this will be a daunting task to implement. But if you're eager to learn, a project like this will make you acquainted with a lot of how Python works and how the bf2 scripting works.
=HOG= Teamspeak
On indefinite LOA from April 2014.
On indefinite LOA from April 2014.
-
Bluedrake42
- Posts: 1933
- Joined: 2009-07-23 17:52
Re: Can I Please Get Scripting Help?
Yeah sorry I would have given more details but I posted once and the thread got deleted (and I have no idea why?? 0.o)
Thanks for the information, I'll definitely give it a shot, but I am really busy between my band, my channel, my work, my school, and the other scripting projects I'm working on atm...
Thanks for the information, I'll definitely give it a shot, but I am really busy between my band, my channel, my work, my school, and the other scripting projects I'm working on atm...
-
Bluedrake42
- Posts: 1933
- Joined: 2009-07-23 17:52
Re: Can I Please Get Scripting Help?
also if I even got the code working, I have no idea how to implement it, I'll PM Bloody and see if he can help me
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: Can I Please Get Scripting Help?
Probably because you where talking about money which is against the BF2 EULA and I think possibly our forum rules to...Bluedrake42 wrote:Yeah sorry I would have given more details but I posted once and the thread got deleted (and I have no idea why?? 0.o)
But the only "details" I saw that you posted there where:
I want an automated map vote system. The system should track which maps have been played in the rotation then choose 3 unplayed maps, start a map vote, tally the votes, and then set the next map to the map that won the vote (or randomly select one of them if it was a tie)
-
Eskil_swe
- PR:BF2 QA Tester
- Posts: 64
- Joined: 2012-06-05 13:42
Re: Can I Please Get Scripting Help?
It can allways be triggerd when a specific CP gets capped.brezmans wrote: - maps where the enemy is capped out and they're bleeding really fast, usually not enough time for a vote
-
Bluedrake42
- Posts: 1933
- Joined: 2009-07-23 17:52
Re: Can I Please Get Scripting Help?
no we'd just have a rock the vote system, players vote to vote
you just type rtv, and if enough people do it the map-vote immediately kicks in
you just type rtv, and if enough people do it the map-vote immediately kicks in
-
BloodyDeed
- Retired PR Developer
- Posts: 4452
- Joined: 2008-05-07 17:43


