• 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 16

iard68

Reserve Team
Hello scouser! I found that the randomization when using multiple fancards is not efficient.
The game repeats the same "random" choice whenever you repeat the same game in the career.

I solved partially by adding these lines to fancards.lua
(rev.mod 1.0), a stratagem that you have already used in other contexts

function GetRMFancards(idx,ven)
local ban = ""

seed = 123456
seed = (seed + db.fancards[idx].homeTeamID + db.fancards[idx].awayTeamID)%1000000

if (idx == 0) then
local temp = math.random(1,1000000)
math.randomseed(seed + temp)
math.random()
math.random()
math.random()
end

local team = db.fancards[idx].homeTeamID
local opp = db.fancards[idx].awayTeamID
local var = math.random(0,3)

(...)

The final solution should be

local x = os.time()
math.randomseed(x)

but I do not understand why it does not work!!


Thank you so much again.
your work has changed completely
the approach to editing!

:)
 

Vonnyaf

Youth Team
Nothing in folder

white_knight;3899008 said:
Read the 1-General.pdf file in the documentation, it will tell you where to start. If you don't understand it (I find that hard), you'd better not mess with this mod then.

Ive got no files at all in the Document folder.
 

scouser09

Senior Squad
pao4ever;3898880 said:
A minor feedback here mate. The colour IDs in the corresponding documentary are incorrect. They should start from 1. For example, white is no1, black is no2 and so on. As I said, a minor one

Sent from my SM-N7505 using tapatalk

Can you be more specific? In the editing and ID guide section, the guide for shirt number colours does have 1 for white, only the accessories one has 0 for white but accessories use a different scheme.


Vonnyaf;3898958 said:
Do I need to change the HEX though? you really dont understand that I dont understand where to start.

To clarify, as I am starting to think we are talking about different things, the hex code I talk about is a six digit hexadecimal number used to store the RGB values of the colour. You do not need to edit any byte code with a hex editor.

This is explained in the documentation. I strongly suggest that you read it completely before asking any more questions.


ballinham;3899193 said:
Hi! Is there somebody that knows how to assign accessories to players through .lua files?

Inviato dal mio LG-D855 utilizzando Tapatalk

You can only swap existing accessories, not assign new ones unfortunately. If you want to swap, the needed statement is in the documentation.


cesco85;3899322 said:
Hi Scouser09. You doing great work for all fifa community. Thank you for this great patch.
One small question for you. Is it possible to add boots and faces for youth players created by game in career mode? Thank you.

Yes, if you know the player ID. You could use Internal Master to read your career mode save file, I would suggest using team ID and shirt number to find the player ID in the teamplayerlinks table.


iard68;3899409 said:
Hello scouser! I found that the randomization when using multiple fancards is not efficient.
The game repeats the same "random" choice whenever you repeat the same game in the career.

I solved partially by adding these lines to fancards.lua
(rev.mod 1.0), a stratagem that you have already used in other contexts

function GetRMFancards(idx,ven)
local ban = ""

seed = 123456
seed = (seed + db.fancards[idx].homeTeamID + db.fancards[idx].awayTeamID)%1000000

if (idx == 0) then
local temp = math.random(1,1000000)
math.randomseed(seed + temp)
math.random()
math.random()
math.random()
end

local team = db.fancards[idx].homeTeamID
local opp = db.fancards[idx].awayTeamID
local var = math.random(0,3)

(...)

The final solution should be

local x = os.time()
math.randomseed(x)

but I do not understand why it does not work!!


Thank you so much again.
your work has changed completely
the approach to editing!

:)

I have tried using the time to seed the random function before myself without success either. My best explanation is that EA have disabled certain libraries, maybe for security reasons. I first noticed this a few years ago when trying to access the file system.

I must admit, with these restrictions it has been hard to effectively seed the generator. I think I might have another attempt to improve it before releasing the next version though.
 

iard68

Reserve Team
scouser09;3900455 said:
I have tried using the time to seed the random function before myself without success either. My best explanation is that EA have disabled certain libraries, maybe for security reasons. I first noticed this a few years ago when trying to access the file system.
QUOTE]

This is reasonable but strange.
In fact I watched the original lua files (those used for the initialization of the system, not for the assets) and in more than one case I found calls to the system functions [os.]. On one occasion (I do not remember by memory), exactly to the os.time function... :nape:
It could be a problem of variable initialization, but I don't know enough lua to make well chosen attempts!

Have a nice day! :)
 

zidane2012

Youth Team
Guys, I have changed the image file "wipe", but in the game it does not change. Regenerated several times. What could be the problem?
 

cesco85

Club Supporter
Thank you for answer Scouser. But I have one more question. There is stored save files FIFA 16? In previous versions of the game it was folder FIFA 16 in my documents, but I can't find them in this folder now. Thank you.
 

Vonnyaf

Youth Team
still dont understand

Vonnyaf;3899670 said:
Ive got no files at all in the Document folder.


Its really rude that if its so "easy" to do yet im not understanding it that none of you can assist in a way thats not telling me to do what ive already looked at and not understanding.

i can see the colour codes but nowhere does it say how to edit the new code into the hex.

IM NOT A COMPUTER PROGRAMMER OR ANYTHING. I CANT WRITE SCRIPT AND JUST MAGICALLY KNOW EVERYTHING TO DO TO CHANGE THINGS IN THE GAME.

all I need is to be properly helped once then I wont need to ask again..

HOW DO I CHANGE 1) THE COLOUR OF THE PLAYER NAMES ON THE BACK. 2) WHICH KITNUMBERS ARE ASSIGNED TO THE JERSEY AND 3) WHICH KIT NUMBERS ARE ASSIGNED TO THE SHORTS!

not asking much.
 

fifajoy

Youth Team
after changed crowd via setTournamentCrowdSize have to regenerate or not .. ?
...
@Vonnyaf .. if somebody knew the answear on your qouestion it will provide you .. so,be patient ..
 

riesscar

Fan Favourite
Staff member
Moderator
Vonnyaf;3901319 said:
Its really rude that if its so "easy" to do yet im not understanding it that none of you can assist in a way thats not telling me to do what ive already looked at and not understanding.



i can see the colour codes but nowhere does it say how to edit the new code into the hex.



IM NOT A COMPUTER PROGRAMMER OR ANYTHING. I CANT WRITE SCRIPT AND JUST MAGICALLY KNOW EVERYTHING TO DO TO CHANGE THINGS IN THE GAME.



all I need is to be properly helped once then I wont need to ask again..



HOW DO I CHANGE 1) THE COLOUR OF THE PLAYER NAMES ON THE BACK. 2) WHICH KITNUMBERS ARE ASSIGNED TO THE JERSEY AND 3) WHICH KIT NUMBERS ARE ASSIGNED TO THE SHORTS!



not asking much.


There's really no reason to get so worked up. Why don't you send me the team, jersey (home away third), what color numbers and name, and I'll write the .lua assignment. I'll then post it and explain what each value dictates.


Sent from my iPad using Tapatalk
 

Vonnyaf

Youth Team
thank you finally

riesscar;3901520 said:
There's really no reason to get so worked up. Why don't you send me the team, jersey (home away third), what color numbers and name, and I'll write the .lua assignment. I'll then post it and explain what each value dictates.


Sent from my iPad using Tapatalk


Sorry. Ive been after someone like you to help me for a while.

I changed one of Atletico Madrids classic kits to their home Kit but with red shorts and all I want is to assign atletico's names and numbers to those kits.
do you need me to send you rx3 files? or can you help from that information?

:)
 

riesscar

Fan Favourite
Staff member
Moderator
Ok. What color numbers and name? White? When you say you changed the classic kit to the home kit, do you mean that you choose it from the kit selection screen in-game? Or, did you use a program like CM16 or just rename the classic kit to actually replace the home kit with the classic one. I need to know the kit type to write the.lua.


Sent from my iPad using Tapatalk
 

riesscar

Fan Favourite
Staff member
Moderator
Vonnyaf;3901540 said:
Sorry. Ive been after someone like you to help me for a while.



I changed one of Atletico Madrids classic kits to their home Kit but with red shorts and all I want is to assign atletico's names and numbers to those kits.

do you need me to send you rx3 files? or can you help from that information?



:)


You can also just send me the .rx3. That might be easier.


Sent from my iPad using Tapatalk
 

Vonnyaf

Youth Team
rx3

riesscar;3901542 said:
You can also just send me the .rx3. That might be easier.


Sent from my iPad using Tapatalk

http://www.mediafire.com/download/gd7brevp1vmh8q4/kit_240_0_1995.rx3

heres my edited rx3. so I basically copied Atletico's home kit out of the files, changed the name of the file and used CG Explorer to import the new shorts.

I just want the Numbers and names to be the Atletico special kitnumbers used on their home and away jersey.

I can send you the home kit rx3 if you need it but im sure you have access to that via your own FIFA files.


I decided to show you some pictures. http://imgur.com/a/x426l

left is the numbers and names on my edited kit that I want to change to what the middle picture is. and on the right is showing the collar which is different to the home jerseys collar. Is the collar changeable or no?

thank you again :)
 

riesscar

Fan Favourite
Staff member
Moderator
Vonnyaf;3901810 said:
http://www.mediafire.com/download/gd7brevp1vmh8q4/kit_240_0_1995.rx3

heres my edited rx3. so I basically copied Atletico's home kit out of the files, changed the name of the file and used CG Explorer to import the new shorts.

I just want the Numbers and names to be the Atletico special kitnumbers used on their home and away jersey.

I can send you the home kit rx3 if you need it but im sure you have access to that via your own FIFA files.


I decided to show you some pictures. http://imgur.com/a/x426l

left is the numbers and names on my edited kit that I want to change to what the middle picture is. and on the right is showing the collar which is different to the home jerseys collar. Is the collar changeable or no?

thank you again :)

Ok, so here is the situation. You are trying to add an alternative home kit... one with red shorts rather than blue. I'm guessing that because you don't see yourself using the 1995 classic kit, your plan is to just choose the classic kit when you want to use the home alternative... right?

I might be incorrect, but I don't think that there is a way to specify kit details for classic kits unless it's in the context of a specific tournament. The thing is that you are going about adding the kit in the wrong way. We can add an alternative home kit by either: 1) adding it in the database, or 2) randomizing the two home kits (red shorts/blue shorts) such that either might be worn. I can write a statement that will do the latter, but to do the former (which is the better alternative IMO) we need to add a kit in the database. Don't worry, it won't break your gamesave compatibility or anything if you have a career going.

DBMaster is not the easiest if you have a hard time with that sort of thing. Why don't you just send me a copy of the database that you are using (I'll need the files 'fifa_ng_db.db' and 'fifa_ng_db-meta.xml'. It is a really easy edit, so if you send me the files I'll have it for you in no time ;)

Oh, and those files are in data/db folder
 

Vonnyaf

Youth Team
f

riesscar;3901853 said:
Ok, so here is the situation. You are trying to add an alternative home kit... one with red shorts rather than blue. I'm guessing that because you don't see yourself using the 1995 classic kit, your plan is to just choose the classic kit when you want to use the home alternative... right?

I might be incorrect, but I don't think that there is a way to specify kit details for classic kits unless it's in the context of a specific tournament. The thing is that you are going about adding the kit in the wrong way. We can add an alternative home kit by either: 1) adding it in the database, or 2) randomizing the two home kits (red shorts/blue shorts) such that either might be worn. I can write a statement that will do the latter, but to do the former (which is the better alternative IMO) we need to add a kit in the database. Don't worry, it won't break your gamesave compatibility or anything if you have a career going.
DBMaster is not the easiest if you have a hard time with that sort of thing. Why don't you just send me a copy of the database that you are using (I'll need the files 'fifa_ng_db.db' and 'fifa_ng_db-meta.xml'. It is a really easy edit, so if you send me the files I'll have it for you in no time ;)

Oh, and those files are in data/db folder

Im sorry but I cant seem to find the files in the directory :/ though I do like the idea of adding Alternative kits into the game.
once I know how to do something ill remember.
 

riesscar

Fan Favourite
Staff member
Moderator
Vonnyaf;3901854 said:
Im sorry but I cant seem to find the files in the directory :/ though I do like the idea of adding Alternative kits into the game.
once I know how to do something ill remember.

Are you playing a career right now? You won't be able to use a modified database online. If you are playing a career, are you using the latest downloaded roster updates? If so, this could create a problem. If you are using the default db or else a modded one (like MWM or Fidel's GP), then we are good to go. Best of all would be if you have yet to begin a career so that we can obtain the latest db available, add the kit, and then you'll be good to go without any backwards compatibility issues.

So my questions:

1) are you playing a career?
2) do you play online mostly?
3) if you are playing a career, did you first download the latest rosters?
4) are you using a mod such as moddingway mod or other?
5) are you good with beginning a new career (assuming you have one going) in order to add the aforementioned kit?
 

Vonnyaf

Youth Team
answers

riesscar;3901866 said:
Are you playing a career right now? You won't be able to use a modified database online. If you are playing a career, are you using the latest downloaded roster updates? If so, this could create a problem. If you are using the default db or else a modded one (like MWM or Fidel's GP), then we are good to go. Best of all would be if you have yet to begin a career so that we can obtain the latest db available, add the kit, and then you'll be good to go without any backwards compatibility issues.

So my questions:

1) are you playing a career?
2) do you play online mostly?
3) if you are playing a career, did you first download the latest rosters?
4) are you using a mod such as moddingway mod or other?
5) are you good with beginning a new career (assuming you have one going) in order to add the aforementioned kit?


1) I am Playing a career
2) I dont play online often or at all really
3) I have the latest squads downloaded in my career
4) Im Using Revolution Mod 16
5) Im fine with beginning a new career just not with atletico. I might with another team.
 

riesscar

Fan Favourite
Staff member
Moderator
Vonnyaf;3901869 said:
1) I am Playing a career
2) I dont play online often or at all really
3) I have the latest squads downloaded in my career
4) Im Using Revolution Mod 16
5) Im fine with beginning a new career just not with atletico. I might with another team.

Cool. If you are willing to start a new career, we need to do so with a custom database. This means that we must manually add the two files I specified (the .db and .xml files) to the Fifa 16/data/db folder (create it if it's not there).

Before we do that, have you ever heard of moddingway mod? It is a massive expansion that allows you to play with all of the Champions and European Cups, the domestic cups, etc... It is given some flack from forum members who feel that inadequate credit is given by the modding pack (it incorporates content from all of the FIFA modding forums), but I won't play a career without it. Here is the link:

http://www.moddingway.com/file/189239.html

Take a look at what it does, and if you decide to add it let me know if you need guidance. Then I'll add that kit for you if you would like.
 

scouser09

Senior Squad
iard68;3900540 said:
This is reasonable but strange.
In fact I watched the original lua files (those used for the initialization of the system, not for the assets) and in more than one case I found calls to the system functions [os.]. On one occasion (I do not remember by memory), exactly to the os.time function... :nape:
It could be a problem of variable initialization, but I don't know enough lua to make well chosen attempts!

Have a nice day! :)

Was the file FIFA 16\data\ui\lua\haral.lua? It probably will not help, but I will try to seed the function from that script where the system functions can be called.


cesco85;3900988 said:
Thank you for answer Scouser. But I have one more question. There is stored save files FIFA 16? In previous versions of the game it was folder FIFA 16 in my documents, but I can't find them in this folder now. Thank you.

It is still there, just in a subdirectory.

Documents\FIFA 16\0\FIFA16\???????\DATA

There is no pattern for the name of ???????, use the last modified date as a guide for guessing. You can also find the file type of DATA by viewing it in a hex editor, the type is near the start of the file.


Vonnyaf;3901319 said:
Its really rude that if its so "easy" to do yet im not understanding it that none of you can assist in a way thats not telling me to do what ive already looked at and not understanding.

i can see the colour codes but nowhere does it say how to edit the new code into the hex.

IM NOT A COMPUTER PROGRAMMER OR ANYTHING. I CANT WRITE SCRIPT AND JUST MAGICALLY KNOW EVERYTHING TO DO TO CHANGE THINGS IN THE GAME.

all I need is to be properly helped once then I wont need to ask again..

HOW DO I CHANGE 1) THE COLOUR OF THE PLAYER NAMES ON THE BACK. 2) WHICH KITNUMBERS ARE ASSIGNED TO THE JERSEY AND 3) WHICH KIT NUMBERS ARE ASSIGNED TO THE SHORTS!

not asking much.

I have told you what you want can be found in the documentation, I even told you what to search for to help you find it quickly. Yet, you call me rude for not copying and pasting it so you do not have to look.

This mod is quite popular and I get a lot of requests for support. This takes up more time than I would prefer to spend. I do not have the time nor interest in giving personal tutorials for those who do not wish to study the documentation. Of course, I am happy to give time to those who do make the effort but need help because they need more information, made a mistake, ect.

Based on your comments, I suspect you did not actually read the documentation, or at best skimmed it quickly. Why? For example, you mention that you have no programming experience and you do not magically know what to do. The documentation explains everything and is aimed at those with none or little programming experience. I think the majority of users of this mod have little or no programming experience, yet they can generally follow the documentation.

If I am wrong however, please give feedback about why you could could not follow the documentation so I can improve it.


fifajoy;3901375 said:
after changed crowd via setTournamentCrowdSize have to regenerate or not .. ?

No, you do not need to regenerate if you add or remove any statements.


riesscar;3901853 said:
I might be incorrect, but I don't think that there is a way to specify kit details for classic kits unless it's in the context of a specific tournament.

Use assignTournamentKitDetails and put the kit year as the tournament ID.
 


Top