• This is a reminder of 3 IMPORTANT RULES:

    1- External self-promotion websites or apps are NOT allowed here, like Discord/Twitter/Patreon/etc.

    2- Do NOT post in other languages. English-only.

    3- Crack/Warez/Piracy talk is NOT allowed.

    Breaking any of the above rules will result in your messages being deleted and you will be banned upon repetition.

    Please, stop by this thread SoccerGaming Forum Rules And Guidelines and make sure you read and understand our policies.

    Thank you!

.:: Revolution Mod 13 ::.

Outsider 87

Starting XI
According to another user, 1026 statements seems to be the ultimate limit, even if you use external files... Do you confirm guys?
 

zico99

Senior Squad
Hey scouser i'm bit confused with the example...
If i have 3gk kits having id 11,12,13
how can i assign it randomly for gk kit of real madrid
plz tell the code only
plz...
 

zico99

Senior Squad
Hey scouser i'm bit confused with the example...
If i have 3gk kits having id 11,12,13
how can i assign it randomly for gk kit of real madrid
plz tell the code only
plz...
 

rique

Senior Squad
scouser09;3348748 said:
There is an example in the manual.




I do not think it is possible, sorry.




There is a limit. You should be able to add more statements if you add an external file (see manual).

Hey, Scouser. I am working on my Concacaf National Teams Patch but I can't seem to enable flags for my created national teams. Can you please help me with this. I have opened the flagpole.lua file and this is what i got:

function PoleFlagUpdate()
local as = gSportsRNA
local poleflag = as:GetTable("wvPoleFlag")

db.crowd.homeTeamID = as:GetInt(poleflag, "homeTeamID")
db.crowd.awayTeamID = as:GetInt(poleflag, "awayTeamID")

db.crowd.homeIsCreationZoneTeam = as:GetInt(poleflag, "homeIsCreationZoneTeam")
db.crowd.awayIsCreationZoneTeam = as:GetInt(poleflag, "awayIsCreationZoneTeam")

db.crowd.homeFlagAsset = "data/sceneassets/flag/flag_${db.crowd.homeTeamID}.rx3"
if (db.crowd.homeIsCreationZoneTeam == 1) then
db.crowd.homeFlagAsset = "data/sceneassets/flag/flag_7500.rx3"
end

db.crowd.awayFlagAsset = "data/sceneassets/flag/flag_${db.crowd.awayTeamID}.rx3"
if (db.crowd.awayIsCreationZoneTeam == 1) then
db.crowd.awayFlagAsset = "data/sceneassets/flag/flag_7500.rx3"
end
end


function PoleFlagAssetBind(poleflag)

local gr = gRenderables
local lod = 0

gr:AddCallback(poleflag, lod, "PoleFlagUpdate()")

gr:AddAsset(poleflag, 0, "shader", "data/fifarna/shader.big")
gr:AddAsset(poleflag, 0, "homeflagtextures", "${db.crowd.homeFlagAsset}")
gr:AddAsset(poleflag, 0, "awayflagtextures", "${db.crowd.awayFlagAsset}")

return poleflag
end


Could you please explain what all of this means and how I can enable flags for created national teams? Thanks.
 

scouser09

Senior Squad
Outsider 87;3349013 said:
According to another user, 1026 statements seems to be the ultimate limit, even if you use external files... Do you confirm guys?

I got 1500 assignments in a test case for the demo (3 external files, 500 assignments each). These where all skin tone assignments though.


zico99;3349818 said:
Hey scouser i'm bit confused with the example...
If i have 3gk kits having id 11,12,13
how can i assign it randomly for gk kit of real madrid
plz tell the code only
plz...

I can not explain it more clearly here than in the example. Study the example and try to adapt it to your needs. If you can not get it to work, post your code and I will tell you what is wrong with it.


rique;3349896 said:
Hey, Scouser. I am working on my Concacaf National Teams Patch but I can't seem to enable flags for my created national teams. Can you please help me with this. I have opened the flagpole.lua file and this is what i got:

function PoleFlagUpdate()
local as = gSportsRNA
local poleflag = as:GetTable("wvPoleFlag")

db.crowd.homeTeamID = as:GetInt(poleflag, "homeTeamID")
db.crowd.awayTeamID = as:GetInt(poleflag, "awayTeamID")

db.crowd.homeIsCreationZoneTeam = as:GetInt(poleflag, "homeIsCreationZoneTeam")
db.crowd.awayIsCreationZoneTeam = as:GetInt(poleflag, "awayIsCreationZoneTeam")

db.crowd.homeFlagAsset = "data/sceneassets/flag/flag_${db.crowd.homeTeamID}.rx3"
if (db.crowd.homeIsCreationZoneTeam == 1) then
db.crowd.homeFlagAsset = "data/sceneassets/flag/flag_7500.rx3"
end

db.crowd.awayFlagAsset = "data/sceneassets/flag/flag_${db.crowd.awayTeamID}.rx3"
if (db.crowd.awayIsCreationZoneTeam == 1) then
db.crowd.awayFlagAsset = "data/sceneassets/flag/flag_7500.rx3"
end
end


function PoleFlagAssetBind(poleflag)

local gr = gRenderables
local lod = 0

gr:AddCallback(poleflag, lod, "PoleFlagUpdate()")

gr:AddAsset(poleflag, 0, "shader", "data/fifarna/shader.big")
gr:AddAsset(poleflag, 0, "homeflagtextures", "${db.crowd.homeFlagAsset}")
gr:AddAsset(poleflag, 0, "awayflagtextures", "${db.crowd.awayFlagAsset}")

return poleflag
end


Could you please explain what all of this means and how I can enable flags for created national teams? Thanks.

This code is used for determining which files to load for flag textures, it does not determine whether the flags will actually show in the stadium though. I am not sure how the game determines whether to show them, I have tried to find a field for it in the database but I have not succeeded so far.
 

rique

Senior Squad
scouser09;3350275 said:
I got 1500 assignments in a test case for the demo (3 external files, 500 assignments each). These where all skin tone assignments though.




I can not explain it more clearly here than in the example. Study the example and try to adapt it to your needs. If you can not get it to work, post your code and I will tell you what is wrong with it.




This code is used for determining which files to load for flag textures, it does not determine whether the flags will actually show in the stadium though. I am not sure how the game determines whether to show them, I have tried to find a field for it in the database but I have not succeeded so far.

Ok, but there's info as well in the crowd.lua file. The db doesn't seem to have it either, like you've said. I would like to try to mess with the "type of flags" and see if that may work. Can you please assist me in entering the codes to change the flag type?
 

EarthYNWA

Youth Team
Hey scouser, amazing job on new version of Revolution Mod, but I'm struggling with one thing right now, when I add assignkitdetails into player.lua, every kits will just disappear in-game, I have no idea what's wrong with that line, because it should be working.:clapwap:
Check it please (there's more of them, but it's not even working with one):
--Brescia
assignKitDetails(190,0,-1,-1,-1,-1,-1,-1,-1,7)
assignKitDetails(190,1,-1,"E41000",-1,-1,4,4,-1,7)
 

a L E x _ 1 O

Reserve Team
I have a problem, I can't understand why the kits don't work!!


for example, I want to create more combinations for Juventus (ID 45) kits (CL version, other goalkeeper colourways and tight fit for all the teams), so I insert those strings in the kits.lua that I've create:


function assignCustomItems()
--------------------------------------------------------------------------------------------------------------
--PLACE CUSTOM ASSIGNMENTS BELOW HERE
--------------------------------------------------------------------------------------------------------------

--kits
assignTournamentRefereeKits(223,223,0)
assignTournamentPlayerKits(45,223,223,-1,-1)

assignGKKit(45,0,{2,12,13,14,15})
assignGKKit(45,1,{2,12,14,15})
assignGKKit(45,3,{2,12,13,14,15})

assignKitDetails(45,0,45,-1, "191919 ",-1, -1,2,1,1,-1)
assignKitDetails(45,1,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,2,45,-1, "191919 ",-1, -1,2,2,1,-1)
assignKitDetails(45,3,45,-1, "191919 ",-1, -1,2,2,1,-1)
assignKitDetails(45,12,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,13,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,14,45,-1, "F5F5F5 ",-1, -1,1,2,1,-1)
assignKitDetails(45,15,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)

useGlobalJerseyFit(1)
--kits end


--------------------------------------------------------------------------------------------------------------
--PLACE CUSTOM ASSIGNMENTS ABOVE HERE
--------------------------------------------------------------------------------------------------------------


if I insert those strings in player.lua, then I don't see more all my other changes!! (tattoos, boots ecc.)

Someone can correct these strings?? Help me please!! :(
 

FormotioN 94

Starting XI
a L E x _ 1 O;3350697 said:
I have a problem, I can't understand why the kits don't work!!


for example, I want to create more combinations for Juventus (ID 45) kits (CL version, other goalkeeper colourways and tight fit for all the teams), so I insert those strings in the kits.lua that I've create:


function assignCustomItems()
--------------------------------------------------------------------------------------------------------------
--PLACE CUSTOM ASSIGNMENTS BELOW HERE
--------------------------------------------------------------------------------------------------------------

--kits
assignTournamentRefereeKits(223,223,0)
assignTournamentPlayerKits(45,223,223,-1,-1)

assignGKKit(45,0,{2,12,13,14,15})
assignGKKit(45,1,{2,12,14,15})
assignGKKit(45,3,{2,12,13,14,15})

assignKitDetails(45,0,45,-1, "191919 ",-1, -1,2,1,1,-1)
assignKitDetails(45,1,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,2,45,-1, "191919 ",-1, -1,2,2,1,-1)
assignKitDetails(45,3,45,-1, "191919 ",-1, -1,2,2,1,-1)
assignKitDetails(45,12,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,13,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,14,45,-1, "F5F5F5 ",-1, -1,1,2,1,-1)
assignKitDetails(45,15,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)

useGlobalJerseyFit(1)
--kits end


--------------------------------------------------------------------------------------------------------------
--PLACE CUSTOM ASSIGNMENTS ABOVE HERE
--------------------------------------------------------------------------------------------------------------


if I insert those strings in player.lua, then I don't see more all my other changes!! (tattoos, boots ecc.)

Someone can correct these strings?? Help me please!! :(
You must put these strings in player.lua, but I don't know why other changes not work:md:
 

scouser09

Senior Squad
rique;3350291 said:
Ok, but there's info as well in the crowd.lua file. The db doesn't seem to have it either, like you've said. I would like to try to mess with the "type of flags" and see if that may work. Can you please assist me in entering the codes to change the flag type?

The parts in crowd.lua are for loading scarfs, they use the same textures as flags. The code for both loads the correct flag files, but does not decide whether or not to actually show it in the stadium. Basically, I can not enable flags in stadiums by editing lua files.

I did a little research into this. A team in the Premier League does not show flags, however if I move that team into the Russian Premier League the flags do show. If I change the country of a league to Russia, flags will then show for the teams in it. This suggests to me that the flag setting is set for countries, rather than teams.


EarthYNWA;3350538 said:
Hey scouser, amazing job on new version of Revolution Mod, but I'm struggling with one thing right now, when I add assignkitdetails into player.lua, every kits will just disappear in-game, I have no idea what's wrong with that line, because it should be working.:clapwap:
Check it please (there's more of them, but it's not even working with one):
--Brescia
assignKitDetails(190,0,-1,-1,-1,-1,-1,-1,-1,7)
assignKitDetails(190,1,-1,"E41000",-1,-1,4,4,-1,7)

This code is correct and works fine for me, your problem is elsewhere. Did you regenerate after the last official update?


zico99;3350672 said:
Hi scouser
plz explain (player kttype) in revolution mod13...

For kittype, 0=home , 1=away, 2=goakeeper, 3=third. You can use other values for other kits you choose to define. 5 should only be used for referee kits though.


a L E x _ 1 O;3350697 said:
I have a problem, I can't understand why the kits don't work!!


for example, I want to create more combinations for Juventus (ID 45) kits (CL version, other goalkeeper colourways and tight fit for all the teams), so I insert those strings in the kits.lua that I've create:


function assignCustomItems()
--------------------------------------------------------------------------------------------------------------
--PLACE CUSTOM ASSIGNMENTS BELOW HERE
--------------------------------------------------------------------------------------------------------------

--kits
assignTournamentRefereeKits(223,223,0)
assignTournamentPlayerKits(45,223,223,-1,-1)

assignGKKit(45,0,{2,12,13,14,15})
assignGKKit(45,1,{2,12,14,15})
assignGKKit(45,3,{2,12,13,14,15})

assignKitDetails(45,0,45,-1, "191919 ",-1, -1,2,1,1,-1)
assignKitDetails(45,1,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,2,45,-1, "191919 ",-1, -1,2,2,1,-1)
assignKitDetails(45,3,45,-1, "191919 ",-1, -1,2,2,1,-1)
assignKitDetails(45,12,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,13,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)
assignKitDetails(45,14,45,-1, "F5F5F5 ",-1, -1,1,2,1,-1)
assignKitDetails(45,15,45,-1, "F5F5F5 ",-1, -1,1,1,1,-1)

useGlobalJerseyFit(1)
--kits end


--------------------------------------------------------------------------------------------------------------
--PLACE CUSTOM ASSIGNMENTS ABOVE HERE
--------------------------------------------------------------------------------------------------------------


if I insert those strings in player.lua, then I don't see more all my other changes!! (tattoos, boots ecc.)

Someone can correct these strings?? Help me please!! :(

Your assignKitDetails statements have too many parameters. I think the extra parameter is the 3rd one, this would be correct if you where using assignTournamentKitDetails though. There should not be a space in the hex code string (I accidently did this in an example in the manual, sorry).

Also, if that code is from an external file (eg your kits.lua), you should only put your statements and comments in, the first line "
function assignCustomItems()" should not be added.
 

EarthYNWA

Youth Team
scouser09;3351601 said:
This code is correct and works fine for me, your problem is elsewhere. Did you regenerate after the last official update?
I reinstalled game, regenerate, insert sceneassets and .luas, regenerate again, also I have created new profile in-game, still doesn't work... :nape:
 

rique

Senior Squad
scouser09;3351601 said:
The parts in crowd.lua are for loading scarfs, they use the same textures as flags. The code for both loads the correct flag files, but does not decide whether or not to actually show it in the stadium. Basically, I can not enable flags in stadiums by editing lua files.

I did a little research into this. A team in the Premier League does not show flags, however if I move that team into the Russian Premier League the flags do show. If I change the country of a league to Russia, flags will then show for the teams in it. This suggests to me that the flag setting is set for countries, rather than teams.




This code is correct and works fine for me, your problem is elsewhere. Did you regenerate after the last official update?




For kittype, 0=home , 1=away, 2=goakeeper, 3=third. You can use other values for other kits you choose to define. 5 should only be used for referee kits though.




Your assignKitDetails statements have too many parameters. I think the extra parameter is the 3rd one, this would be correct if you where using assignTournamentKitDetails though. There should not be a space in the hex code string (I accidently did this in an example in the manual, sorry).

Also, if that code is from an external file (eg your kits.lua), you should only put your statements and comments in, the first line "
function assignCustomItems()" should not be added.

Yeah, but scouser all national teams have flags in the game. However, when I create other national teams that were not done by ea, none have flags showing. Even when I add the flag.rx3 files.
 

lonewolf08

Club Supporter
zico99;3349820 said:
Hey scouser i'm bit confused with the example...
If i have 3gk kits having id 11,12,13
how can i assign it randomly for gk kit of real madrid
plz tell the code only
plz...

read the first example on page 12 in the manual. u have to use a randomisation statement

assignGKKit(243,0,{11,12,13})

* 243 = teamid of real madrid, 0=homekit, 11,12,13 = 3gk kits
* the kits are kit_243_11_0.rx3, kit_243_12_0.rx3 and kit_243_13_0.rx3
* replace 0 with 1 if u want it for awaykit
* u can write any of these nos. 11,12,13 twice inside the curly brackets to double its chance of selection during each match
* write this randomisation statement in player.lua and not in external lua file
 

lonewolf08

Club Supporter
EarthYNWA;3350538 said:
Hey scouser, amazing job on new version of Revolution Mod, but I'm struggling with one thing right now, when I add assignkitdetails into player.lua, every kits will just disappear in-game, I have no idea what's wrong with that line, because it should be working.:clapwap:
Check it please (there's more of them, but it's not even working with one):
--Brescia
assignKitDetails(190,0,-1,-1,-1,-1,-1,-1,-1,7)
assignKitDetails(190,1,-1,"E41000",-1,-1,4,4,-1,7)

some people are having problems with player.lua...try adding these lines in external lua file like kits.lua and check if it solves the problem....remember to add the line - addExternalFile("kits.lua") in assets.lua
 

V.K

Starting XI
So now I'm facing a very strange problem:
I've added these lines to my external file 'kits'

--Manchester United
assignGameKit(11,18,11,0,5) --Home Kit Black Shorts vs Spurs
assignKitDetails(11,5,-1,-1,-1,-1,-1,1,-1,-1)


But in the match against Spurs I got blue-and-green squares instead of the new kit. Obviously I have the rx3 in sceneassets.
And when I quit the match and start another one, I can see during the kit selection that the rx3 works fine.

[/RIGHT]

What did I do wrong?
 

pao4ever

Starting XI
I think that it's obvious that you assigned the new kittype as 5, which is the referee kittype. try using a new one, like 6
 

Gerrardand

Club Supporter
V.K;3352997 said:
So now I'm facing a very strange problem:
I've added these lines to my external file 'kits'

--Manchester United
assignGameKit(11,18,11,0,5) --Home Kit Black Shorts vs Spurs
assignKitDetails(11,5,-1,-1,-1,-1,-1,1,-1,-1)


But in the match against Spurs I got blue-and-green squares instead of the new kit. Obviously I have the rx3 in sceneassets.
And when I quit the match and start another one, I can see during the kit selection that the rx3 works fine.

[/RIGHT]

What did I do wrong?

Could you share the Manchester United kit rx.3 file???
 

Damko87

Club Supporter
Hi, I have a problem with flashing two sets of singlets goalkeeper would like to ask for help, me wondering the Revolution mod 13 but do not get the lines and also adding the CM12 but I managed to write it wtylko two sets of singlets at home and away matches and I would write it also suits the Goalkeeper Home and away matches please popmoc I will be grateful, and please do not remove subject only to help



and wanted to know what denote such characters as in the line at the bottom


assignKitDetails (1.22, -1, "000000", -1, -1.2, -1, -1, -1)


please add explanation as home and away jerseys for goalkeepers
 


Top