Revolution Mod 16

Discussion in 'FIFA 16 Mods, Patches and Total Conversions' started by scouser09, Sep 8, 2015.

  1. iard68

    iard68 Reserve Team

    Joined:
    Sep 2, 2008
    Messages:
    617
    Likes Received:
    0
    Location:
    Torino
    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!

    :)
     
  2. Vonnyaf

    Vonnyaf Youth Team

    Joined:
    Jan 2, 2016
    Messages:
    261
    Likes Received:
    12
    Nothing in folder

    Ive got no files at all in the Document folder.
     
  3. white_knight

    white_knight Youth Team

    Joined:
    Nov 20, 2013
    Messages:
    358
    Likes Received:
    2
    Never said they are in your Documents folder. They are inside the archive you can download in first post.
     
  4. scouser09

    scouser09 Senior Squad

    Joined:
    Feb 21, 2002
    Messages:
    1,871
    Likes Received:
    462
    Location:
    Liverpool, England
    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.


    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.


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


    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.


    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.
     
  5. iard68

    iard68 Reserve Team

    Joined:
    Sep 2, 2008
    Messages:
    617
    Likes Received:
    0
    Location:
    Torino
     
  6. zidane2012

    zidane2012 Youth Team

    Joined:
    Dec 7, 2011
    Messages:
    156
    Likes Received:
    0
    Location:
    KYIV UKRAINE
    Guys, I have changed the image file "wipe", but in the game it does not change. Regenerated several times. What could be the problem?
     
  7. cesco85

    cesco85 Club Supporter

    Joined:
    Apr 6, 2009
    Messages:
    69
    Likes Received:
    0
    Location:
    Moldova
    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.
     
  8. Vonnyaf

    Vonnyaf Youth Team

    Joined:
    Jan 2, 2016
    Messages:
    261
    Likes Received:
    12
    still dont understand


    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.
     
  9. fifajoy

    fifajoy Youth Team

    Joined:
    Jan 21, 2009
    Messages:
    362
    Likes Received:
    0
    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 ..
     
  10. riesscar

    riesscar Fan Favourite

    Joined:
    Feb 4, 2015
    Messages:
    1,802
    Likes Received:
    1,742
    Location:
    New Orleans

    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
     
  11. Vonnyaf

    Vonnyaf Youth Team

    Joined:
    Jan 2, 2016
    Messages:
    261
    Likes Received:
    12
    thank you finally


    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?

    :)
     
  12. riesscar

    riesscar Fan Favourite

    Joined:
    Feb 4, 2015
    Messages:
    1,802
    Likes Received:
    1,742
    Location:
    New Orleans
    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
     
  13. riesscar

    riesscar Fan Favourite

    Joined:
    Feb 4, 2015
    Messages:
    1,802
    Likes Received:
    1,742
    Location:
    New Orleans

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


    Sent from my iPad using Tapatalk
     
  14. Vonnyaf

    Vonnyaf Youth Team

    Joined:
    Jan 2, 2016
    Messages:
    261
    Likes Received:
    12
    rx3

    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 :)
     
  15. riesscar

    riesscar Fan Favourite

    Joined:
    Feb 4, 2015
    Messages:
    1,802
    Likes Received:
    1,742
    Location:
    New Orleans
    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
     
  16. Vonnyaf

    Vonnyaf Youth Team

    Joined:
    Jan 2, 2016
    Messages:
    261
    Likes Received:
    12
    f

    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.
     
  17. riesscar

    riesscar Fan Favourite

    Joined:
    Feb 4, 2015
    Messages:
    1,802
    Likes Received:
    1,742
    Location:
    New Orleans
    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?
     
  18. Vonnyaf

    Vonnyaf Youth Team

    Joined:
    Jan 2, 2016
    Messages:
    261
    Likes Received:
    12
    answers


    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.
     
  19. riesscar

    riesscar Fan Favourite

    Joined:
    Feb 4, 2015
    Messages:
    1,802
    Likes Received:
    1,742
    Location:
    New Orleans
    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.
     
  20. scouser09

    scouser09 Senior Squad

    Joined:
    Feb 21, 2002
    Messages:
    1,871
    Likes Received:
    462
    Location:
    Liverpool, England
    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.


    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.


    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.


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


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

Share This Page