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?
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!
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).
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?
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...
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.
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.
You must put these strings in player.lua, but I don't know why other changes not worka 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!!
Yes, sorry, 1026 is the limit for specificface assignements only!!!scouser09;3350275 said:I got 1500 assignments in a test case for the demo (3 external files, 500 assignments each). .
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?
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.
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)
zico99;3350672 said:Hi scouser
plz explain (player kttype) in revolution mod13...
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!!
I reinstalled game, regenerate, insert sceneassets and .luas, regenerate again, also I have created new profile in-game, still doesn't work...scouser09;3351601 said:This code is correct and works fine for me, your problem is elsewhere. Did you regenerate after the last official update?
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.
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...
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.
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)
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?