Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: Facepack mod (WIP) - need your help

  1. #1

    Join Date
    17-06-12
    Posts
    455

    Facepack mod (WIP) - need your help

    So last time i managed to get written history screen showed on player profile.

    Appeared it rather useless for community so i decide why not to try do normal facepack?

    That is final result what i want to achieve:

    Spoiler!


    how?

    1) cm3 engine could check if player has history file or not.

    if player has it - i am moving attributes right (to empty place for facepack)

    Spoiler!


    if player doesnt have it, it loads as usual

    Spoiler!


    2) After that i have empty place - we need to put facepack there


    Now i am stuck at such phase

    Spoiler!



    Things i need to do

    1) erase text and buttons
    2) the most important thing i need help with:

    to disable "game freeze" while loading written history.

    I mean when you loading written history - game stops. You cant push any button, only "ok" - which closes history screen. If that could be solved - it is 99% deal done.

  2. The Following 2 Users Say Thank You to MarcoVanBast For This Useful Post:


  3. #2

    Join Date
    26-09-18
    Location
    Brazil
    Posts
    881
    Nice work!

    Quote Originally Posted by MarcoVanBast View Post
    I mean when you loading written history - game stops. You cant push any button, only "ok" - which closes history screen. If that could be solved - it is 99% deal done.
    If you know the offsets where the history popup gets triggered just put a JMP over it

  4. #3

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by MadScientist View Post
    Nice work!



    If you know the offsets where the history popup gets triggered just put a JMP over it
    sorry but i didnt get the point.

    surely i can jump over "ok" button so when i click on it - pop up isnt closing, but how it helps to aviod game freeze.

    i cant find any call which in charge for game to freeze

  5. #4

    Join Date
    17-06-12
    Posts
    455
    find interesting offset

    every time player history screen pop-ups it calls 7FE600

    which is

    Code:
    0x7FE600 SCREEN_MANAGER::new_screen
    however filling it with nops get game crush

  6. #5

    Join Date
    04-05-20
    Posts
    89
    Would it be easier to create a custom background image for each person with their face positioned to appear in the gap created by moving columns to the right?

    0x7FE600 gets called a lot (180+), so I expect it is something generic - i.e. it gets called in numerous situations not just re player histories.

  7. #6

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by John Locke View Post
    Would it be easier to create a custom background image for each person with their face positioned to appear in the gap created by moving columns to the right?
    Thought about it

    but it is not very good idea

    coz that backgrounds could appear on other players screen, or at "news" screen etc

    Quote Originally Posted by John Locke View Post
    0x7FE600 gets called a lot (180+), so I expect it is something generic - i.e. it gets called in numerous situations not just re player histories.
    Sure, every time game need new screen it gets called.

  8. #7

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by MarcoVanBast View Post

    1) cm3 engine could check if player has history file or not.

    if player has it - i am moving attributes right (to empty place for facepack)

    After few days of coding that part is done.

  9. The Following User Says Thank You to MarcoVanBast For This Useful Post:


  10. #8

    Join Date
    17-06-12
    Posts
    455
    Ok i give up

    i tried almost all ideas i had, and failed.

    I am leaving all usefull info here, myabe next one could finish it.



    So, like i said above - deal in that part of code

    Code:
                         Comments
    008703DC  PUSH 0                                
    008703DE   PUSH 0088B8A0         
    008703E3   PUSH 0                           
    008703E5   PUSH 00888260       <------------ pushes offset where history screen is located                    
    008703EA   PUSH 00870700                          
    008703EF    MOV ECX,OFFSET 00B74450
    008703F4      CALL 007FE600    <------------ called "new screen"
    so i was mistaken in 1st post, game doesnt freeze.

    Just when i get histroy screen it loading in "new screen", and what i see in background doesnt really exist on that screen. I proofed it by calling plain bacground (so history screen appears just on plain default.rgn)

    I tried to NOPs 008703F4 offset - fail
    tried call ::draw function (call 55F300) - fail
    tried call ::create_label function (call 55FBA0) - fail

    i tried to write separate code of history screen and call it from new place - fail

  11. #9

    Join Date
    03-01-17
    Posts
    27
    the effort made is appreciated. It would be the last remaining implementation of this excellent game.

  12. #10

    Join Date
    04-06-20
    Posts
    15
    If i understand correctly using same idea we can make competition/club logos? Clubs and comps als have their unique history screen section, right?

  13. #11

    Join Date
    17-06-12
    Posts
    455
    I will try to hire some programmer on freelance

    in fact it shouldnt be too hard, we have almost all we need

    1) we have checking if player has history or not (i already made player screen looking different according to that CMP)
    2) we have full route from how that screen pop-ups to all XY coordinates of how it draws

    just need some simple knowledge of coding, which i dont have

  14. #12

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by MarcoVanBast View Post
    I will try to hire some programmer on freelance
    first try is a disaster - got cheated for 100$

  15. #13

    Join Date
    17-06-12
    Posts
    455
    Ok folks

    after hours of coding - it is the maximum i can provide

    Last edited by Dermotron; 13-11-20 at 10:29 AM.

  16. The Following 2 Users Say Thank You to MarcoVanBast For This Useful Post:


  17. #14

    Join Date
    09-03-12
    Posts
    99
    Quote Originally Posted by MarcoVanBast View Post
    Ok folks

    after hours of coding - it is the maximum i can provide

    https://www.youtube.com/watch?v=mPNC...ature=youtu.be
    really great work!!!!!

  18. #15

    Join Date
    13-06-12
    Location
    Braga
    Posts
    55
    wow, this would be a great mod. keep it up guys

  19. #16

    Join Date
    03-03-12
    Posts
    27,016
    Nice work

  20. #17

    Join Date
    03-01-17
    Posts
    27
    Wooooow, this is incredible! Will we have to get to work to create the images

  21. #18

    Join Date
    29-07-19
    Posts
    41
    Really glad to see you persisted with this.

  22. #19

    Join Date
    17-06-12
    Posts
    455
    I just want to said - i finished here. here few examples



    One thing - i made it for cm3. When i have free time i will transfer it to cm0102, but i cant really say when it will happen. And it wil be .exe file, i dont know how to write patches

  23. The Following 5 Users Say Thank You to MarcoVanBast For This Useful Post:


  24. #20

    Join Date
    09-03-12
    Posts
    99
    Hi Marco,

    Totti's regen ( or Zidane or Ronaldo ) will have the same pic of Totti? Or will not have pic?

    Bye
    Marco

  25. #21

    Join Date
    09-03-12
    Posts
    99
    Hi Marco,

    Totti's regen ( or Zidane or Ronaldo ) will have the same pic of Totti? Or will not have pic?

    Bye
    Marco

  26. #22

    Join Date
    31-05-12
    Posts
    25
    Thats awesome. I'm sure folks would contribute with pictures for their teams. I'd help if needed. What dimensions are the pictures

  27. #23

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by clipeus View Post
    Hi Marco,

    Totti's regen ( or Zidane or Ronaldo ) will have the same pic of Totti? Or will not have pic?

    Bye
    Marco
    pics connected to players like backgounds by DOB + full name.

    so no, regens will not have any.

  28. The Following 2 Users Say Thank You to MarcoVanBast For This Useful Post:


  29. #24

    Join Date
    29-07-19
    Posts
    41
    Quote Originally Posted by MarcoVanBast View Post
    pics connected to players like backgounds by DOB + full name.

    so no, regens will not have any.
    If you added a picture for a regen with its DOB + full name would it then show up?

    Do you know if it loads or parses all the pictures on start up or if it does it when you access the player screen?

    Would be cool if some UI elements could be layered over the top of the design so it shows the current club colours.
    Last edited by tonytony; 15-11-20 at 08:02 PM.

  30. #25

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by tonytony View Post
    If you added a picture for a regen with its DOB + full name would it then show up?

    Do you know if it loads or parses all the pictures on start up or if it does it when you access the player screen?

    Would be cool if some UI elements could be layered over the top of the design so it shows the current club colours.
    i am afraid you exaggerating my skills.

    this mod is simple loading player history photo in right place + move attributes in right place.

    adding UI element - out of my league)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •