Page 1 of 1

Change ticket ammount, also for skirmish?

Posted: 2017-12-15 17:11
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!

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-15 17:52
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.

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-15 22:10
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.

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-15 23:08
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?

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-15 23:10
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.

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 00:22
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?

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 07:27
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

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 08:59
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!

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 09:34
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' ) )

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 10:04
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

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 12:18
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

Re: Change ticket ammount, also for skirmish?

Posted: 2017-12-16 12:26
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?