Change ticket ammount, also for skirmish?

Making or wanting help making your own asset? Check in here
Post Reply
CAS_ual_TY
PR:BF2 Contributor
Posts: 926
Joined: 2016-01-04 12:30

Change ticket ammount, also for skirmish?

Post by CAS_ual_TY »

Code: Select all

gameLogic.setDefaultNumberOfTicketsEx 16 1 400
gameLogic.setDefaultNumberOfTicketsEx 16 2 400
gameLogic.setDefaultNumberOfTicketsEx 32 1 600
gameLogic.setDefaultNumberOfTicketsEx 32 2 600
gameLogic.setDefaultNumberOfTicketsEx 64 1 650
gameLogic.setDefaultNumberOfTicketsEx 64 2 650
gameLogic.setDefaultNumberOfTicketsEx 128 1 900
gameLogic.setDefaultNumberOfTicketsEx 128 2 900
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 17
gameLogic.setTicketLossPerMin 2 17
Found this in the init.con of the server part in the level folders. Ive seen that eg. on korengal you use the init.con for the ins layers and init_aas.con for the aas layers.

Does it always look for an init_aas.con or does this need to be added manually?
How would I run a custom init_skirmish.con or change the tickets for skirmish?

I am currently working on realizing one of the suggestions I made (or trying out some stuff) which would allow PR to push out A LOT of content with very little work required, while also solving this annoying fallujah west 24/7

Thanks!
Image
Image Image
rPoXoTauJIo
PR:BF2 Developer
Posts: 1979
Joined: 2011-07-20 10:02

Re: Change ticket ammount, also for skirmish?

Post by rPoXoTauJIo »

Skirmish tickets are python config value('SKIRMISH_TICKETS'), after map load on skirmish layer server manually setting tickets values for both teams as specified in config.
Image

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.

Time to give up and respawn.
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Change ticket ammount, also for skirmish?

Post by Outlawz7 »

CAS_ual_TY wrote: Does it always look for an init_aas.con or does this need to be added manually?
Must be added manually. Maps featuring both AAS and Ins gamemodes need separate inits to define tickets for one of the gamemodes since Ins uses ticket count to define cache amount.
Image
CAS_ual_TY
PR:BF2 Contributor
Posts: 926
Joined: 2016-01-04 12:30

Re: Change ticket ammount, also for skirmish?

Post by CAS_ual_TY »

[R-DEV]rPoXoTauJIo wrote:Skirmish tickets are python config value('SKIRMISH_TICKETS'), after map load on skirmish layer server manually setting tickets values for both teams as specified in config.
Any way to change that? To make it map specific? Maybe implemend oke tyty?
[R-DEV]Outlawz7 wrote:Must be added manually. Maps featuring both AAS and Ins gamemodes need separate inits to define tickets for one of the gamemodes since Ins uses ticket count to define cache amount.
My question is rather: What would I need to do, so that my init_aas.con gets loaded? Or is the init.con used by default and then init_ins, init_sp, init_aas automatically overwrite without me needing to register these?
Image
Image Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Change ticket ammount, also for skirmish?

Post by Outlawz7 »

CAS_ual_TY wrote: My question is rather: What would I need to do, so that my init_aas.con gets loaded?
run ../../../Init_whatever.con at the top of GPO.
Image
CAS_ual_TY
PR:BF2 Contributor
Posts: 926
Joined: 2016-01-04 12:30

Re: Change ticket ammount, also for skirmish?

Post by CAS_ual_TY »

[R-DEV]Outlawz7 wrote:run ../../../Init_whatever.con at the top of GPO.
Thanks! I suppose it doesnt work with skirmish? Or does it?
Image
Image Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Change ticket ammount, also for skirmish?

Post by Rhino »

CAS_ual_TY wrote:Thanks! I suppose it doesnt work with skirmish? Or does it?
Falklands uses them for Skirmish, in fact, it even has separate inits for both Skirmish 16 an 32 layers, and not just for tickets but to load extra statics etc too. IIRC the python is setup on skirmish to adjust the tickets, if there is no init to define them for the skirmish layers.

Code: Select all

run ../../../Init_Skirmish16.con
Image
CAS_ual_TY
PR:BF2 Contributor
Posts: 926
Joined: 2016-01-04 12:30

Re: Change ticket ammount, also for skirmish?

Post by CAS_ual_TY »

'[R-DEV wrote:Rhino;2178668']Falklands uses them for Skirmish, in fact, it even has separate inits for both Skirmish 16 an 32 layers, and not just for tickets but to load extra statics etc too. IIRC the python is setup on skirmish to adjust the tickets, if there is no init to define them for the skirmish layers.

Code: Select all

run ../../../Init_Skirmish16.con
So no hardcoding for skirmish. Thats what I wanted to hear, thank you!
Image
Image Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Change ticket ammount, also for skirmish?

Post by Outlawz7 »

Nope, Falkland Skirmish tickets are defined in Python. Or rather, Falklands is the exception.
if rcore.getMapName( ) != 'the_falklands':
bf2.gameLogic.setTickets( team, realityserver.C( 'SKIRMISH_TICKETS' ) )
Image
CAS_ual_TY
PR:BF2 Contributor
Posts: 926
Joined: 2016-01-04 12:30

Re: Change ticket ammount, also for skirmish?

Post by CAS_ual_TY »

[R-DEV]Outlawz7 wrote:Nope, Falkland Skirmish tickets are defined in Python. Or rather, Falklands is the exception.
you dirty hardcoders
Image
Image Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Change ticket ammount, also for skirmish?

Post by Rhino »

[R-DEV]Outlawz7 wrote:Nope, Falkland Skirmish tickets are defined in Python. Or rather, Falklands is the exception.
Ah ye, I remember it was done that way as otherwise, every skirmish layer would need to have their own init files to define their tickets and AM etc didn't think that was worth it :p
Image
CAS_ual_TY
PR:BF2 Contributor
Posts: 926
Joined: 2016-01-04 12:30

Re: Change ticket ammount, also for skirmish?

Post by CAS_ual_TY »

[R-DEV]Rhino wrote:Ah ye, I remember it was done that way as otherwise, every skirmish layer would need to have their own init files to define their tickets and AM etc didn't think that was worth it :p
So until I have a valid reason or suggestion it would stay like that, I suppose?

EDIT: So, gamemodes are all in the \mods\pr\python\game\gamemodes\ folder. If I was to make a new gamemode to be able to overwrite that (basically a duplicate with a different name), would I have to register that somewhere? Or are all files basically read and then registered automatically in that folder?
Image
Image Image
Post Reply

Return to “PR:BF2 Community Modding”