Results 1 to 17 of 17

Thread: Facepack mod (WIP) - need your help

  1. #1

    Join Date
    17-06-12
    Posts
    444

    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 User Says Thank You to MarcoVanBast For This Useful Post:


  3. #2

    Join Date
    26-09-18
    Location
    Brazil
    Posts
    873
    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
    444
    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
    444
    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
    54
    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
    444
    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
    444
    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
    444
    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
    13
    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
    444
    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
    444
    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
    444
    Ok folks

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

    https://www.youtube.com/watch?v=mPNC...ature=youtu.be

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


  17. #14

    Join Date
    09-03-12
    Posts
    83
    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
    28,086
    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

Posting Permissions

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