Salta al contenuto



Alterna Shoutbox Urlobox

@  Pesmania2001 : (18 January 2018 - 12:40 PM) Arriverà Han, ci sarà uno scambio con Cerri

Foto

LiveCPK (sider 3) by juce and nesa24


  • Please log in to reply
59 replies to this topic

#1 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 11 January 2017 - 08:59 AM

LiveCPK (sider 3) by Juce and nesa24


juce said:

Hello, guys.

I got a message from nesa24 about possibly making something for PES 2017. I haven't played the game other than the demo before that, but his note made me realise that i kinda miss PES editing... Ridiculous as it sounds, but true. Have the game now, and hopefully nesa24 and i will be able to work together on some tools/programs for PES. In fact, we already started... Immagine Postata
More information later, when we make some progress.

For now, i adapted my Sider program from last year to work with 2017 version of PES.
Enjoy!
 
LiveCPK (Sider 3) for PES 2017
 
Introducing LiveCPK feature in Sider 3.0:

The idea isn't new, but rather old: if you used or heard of AFS2FS module for Kitserver, or - more recently - FileLoader by Jenkey1002, then LiveCPK will sound very familiar to you. It is a way to load content from files in folders on disk, instead of cpk archives.

Nesa contacted me via a PM, and mentioned that it would be nice to be able to load data from files, because it was tedious to repack cpks. I haven't been modding PES seriously for 3-4 years now, and was kinda curious to give it a try, especially since it'd be a fresh start, as i had never worked with CPKs before. Nesa already did some research and gave me a set of code and data addresses to look at. In turned out to be extremely useful and saved a lot of time.

We have the first version that is ready for people to try and test. It seems to work ok for many types of files. There are probably bugs, but we will try to fix them, as they get discovered.

How it works:
You organize the files into folders, with root folder specified in sider.ini, in "cpk.root" option. Inside the root folder you will have "common", and so on - as the structure of the game dictates. You can have multiple root folders, or "roots". Think of these roots as basically unpacked CPK archives.

Why use this:
Technically, this particular version, does not give much advantage over the alternative of using download folder and DpFileList.bin. But, I imagine LiveCPK can be useful for artists, who can iterate much quicker on their work: you don't even need to exit the game to modify a file - you simply Alt-Tab to you editing program, make changes, then switch back to the game, and see updated artwork right away, once the game reloads that particular file. Also, you can still use download/DpFileList.bin for some patches and LiveCPK for some other - there is no conflict, except LiveCPK content has priority.

Thoughts for future:
Using folders and files is one possibility. However, in principal, we could do more interesting things. For example, LiveCPK can be adapted to support Lua scripting and then functionality can be extended beyond just fixed files and folders. Perhaps, people would write Lua scripts that would implement a Stadium server, or a maybe do on-demand creation of DDS textures from PNG files, or maybe something with music. I dunno... Just some ideas.


Sider for Pro Evolution Soccer 2017
Immagine Postata
- free sides select, including being able to move 1st controller into the middle

Immagine Postata

- camera tweaks: extended sliders, angle modifier for Dynamic Wide camera

Immagine Postata Immagine Postata

Immagine Postata Immagine Postata
 
Sider 3.0.2
small update:
- added support for relative paths for cpk-roots.
- added example root with a ball by @-cRoNoS-
- sider now checks to see if it is already running, and won't start another instance of self if so.

Sider 3.1.0
- major update on how things work internally.
- fixed issues with handling of large files (such as movies, animated aboards, music, etc.)

Sider 3.1.1
- fixing problem with "live" file replacements, which 3.1.0 had. This works again.
- performance improvement: eliminate unnecessary seeks in game cpk-files
- re-worked internals once again to use less cpu/memory.

Sider 3.1.2
Small maintenance release:
- now works again on Mac, using wine, with Wineskin wrapper or PlayOnMac.
- normalized debug logging.
 
Sider 3.2.0
Little update with some research magic from @nesa24:
- turn off the black bars during the matches - to use more of your monitor and see more of the field Immagine Postata
 
Sider 3.2.1
- with updated sider.ini, so that it works with PES 2017 exe 1.04
 
Sider 3.3.0
added lua scripting with trophy server
For Lua scripting, see docs/scripting.txt - it tries to explain things
For Trophy server, see the source of it: in modules/trophy.lua
 
Sider 3.3.1
What's new: Lua support fixes and new features:
- [color=#0059b3;][FIX][/color] tournament_id is now available in the context as early as possible
- [color=#336600;][NEW][/color] set_stadium event: you can change stadium, timeofday, weather, and season
- [color=#336600;][NEW][/color] set_match_time event: change match duration (number of minutes)
See examples of using these new features in modules/
For all details: read updated documentation in docs/scripting.txt
 
Sider 3.3.2
- [color=#0059b3;][FIX][/color]: stadium thumbnail and name are now correctly shown before kick-off
-[color=#59b300;] [NEW][/color]: match_info in context: can be used to determine if the match is a final
- [color=#59b300;][NEW][/color]: match_leg in context: is set to 1 or 2, for two-legged knocked-out rounds
Alright, a good version is available now. I downloaded and tested it twice, and it all seems good this time:
 
Sider 3.3.2.1
- [color=#0080ff;][BUG-FIX][/color] : match_info is now available in the context. (3.3.2.0 didn't have it)
See docs/scripting.txt for information about "match_info". It varies based on what the match is.
See modules/stadium.lua - for how to determine a tournament final. Basically it's like this:
How to activate: you will need to modify your sider.ini - notice the new "black.bars.off" setting there. By default it is set to 0 - meaning no action, keep the black bars. If you change that to 1, then the black bars will be gone during the matches, and also in the main menu. (Some other menus and edit mode will still have the bars).
Kudos to Master Nesa, who found the code location!
 
Sider 3.3.3
- [color=#00b300;][New][/color]: get_ball_name event - for use with ball-server
- [color=#00b300;][New][/color]: is_edit mode field in the context object (and new events for entering/exiting edit mode)
- [color=#00b300;][New][/color]: memory library - to search, read, and write memory.

See doc/scripting.txt for details on all of the new stuff.

Sider 3.3.4
This is mostly a maintenance (bug-fix) release:

- [color=#0080ff;][FIX][/color]: In Master League games context object was filled with garbage after a goal or a foul (replay). This was also causing crashes, due to bad memory accesses. This is now fixed.
- [color=#59b300;][NEW][/color]: get_stadium_name event : useful for stadium-server ... You know, if there is one in the future Immagine Postata
- [color=#b300b3;][CHANGE][/color]: set_stadium event has been split into two different ones: set_stadium and set_conditions. Both events provide information about stadium, time-of-day, season, and weather, but they allow to change different parts of it: set_stadium - stadium only, set_conditions - timeofday, season, weather.
 
Sider 3.4.0
- [color=#0059b3;][bug-fix][/color]: memory.write can now correctly write arbitrary binary strings (with zeros inside)
- [color=#59b300;][new][/color]: memory.pack and memory.unpack - for converting between Lua numbers and their binary representations
- [color=#59b300;][new][/color]: "close.on.exit" and "start.minimized" options in sider.ini. This is useful if you (like @Energia) use a batch file to start sider right before the game, and then when the game exists, you want sider to automatically quit also.
- [color=#59b300;][new][/color]: gameplay lua library: makes it simple to alter some gameplay aspects (researched for you by @nesa24) - see docs/scripting.txt, the Gameplay section - for all the details. Also included are example modules: gameplay.lua and gameplay2.lua.
- [color=#59b300;][new][/color]: new context field: ctx.stadium_choice and corresponding "set_stadium_choice" event. These allow for potentially more nuanced behaviour of a stadium-server in exhibition modes. (We'll need @zlac to take a look at this, and see if he can use it in his awesome StadiumServer)

 

Sider 3.4.1
this is a small maintenance release, mostly to support the soon-to-come new version of Stadium Server:

- [color=#0059b3;][fix][/color]: the stadium_choice variable in context object is now correctly set and cleared for non-steam exe
- [color=#59b300;][new][/color]: support for better replay-handling: new fields in context object, available only during watching replays in "Replay Gallery" mode: is_replay_gallery and replay_tournament_type. Sider will also try to help the game to load a replay, which uses stadium that doesn't exist, by switching it to an existing stadium.

And one last note:
also, included in modules directory - aspectratio.lua. It's not for everyone, but for those who like to poke the bytes - it demonstrates the use of "memory" library to force the game into a custom aspect ratio. Again, all credit to @nesa24 for research work.

 

Sider 3.4.2
- [color=#0059b3;][fix][/color]: correction for context object, when in replay-gallery mode

   

 

  Sider 3.4.3 with Snow
- [color=#00b300;][new][/color]: the context object now has weather_effects, and "set_conditions" event provides current value of weather_effects in the options table. To force falling snow/rain - you need to set weather_effects to 2 in the options table and return the table. (See snow-mod.lua - as example of that)

 

 Sider 3.5.0
-[color=#00b300;] [new][/color]: gameplay settings: ball_magnus and ball_scale_{xyz}
- [color=#00b300;][new][/color]: gfx library: 4 visual effects, including brightness and sharpness. See gfx.ini and modules/gfx.lua
- [color=#00b300;][new][/color]: game.speed option in sider.ini
- allows for fine-tuning of game speed.
- change: performance improvement for lua modules that use livecpk_* events.
 All gameplay, gfx, and game.speed options were made possible @nesa24 's research. Big kudos to him!

 

Sider 3.5.1
- [color=#59b300;]new[/color]: events "after_set_conditions" and "after_set_conditions_for_replay". These events can be useful, if your module does not want to make any changes to weather or stadium selection, but just want the latest information about what the stadium is and what conditions have been chosen. (see docs/scripting.txt for documentation)
- [color=#0059b3;]change[/color]: updated gameplay.ini with newest supported options (ball_magnus, ball_scale_*)

 

 

 

 

 

 

 

 
 

Sider 3.5.1
https://mapote.com/pes/sider-3.5.1.zip

- [color=#59b300;]new[/color]: events "after_set_conditions" and "after_set_conditions_for_replay". These events can be useful, if your module does not want to make any changes to weather or stadium selection, but just want the latest information about what the stadium is and what conditions have been chosen. (see docs/scripting.txt for documentation)
- [color=#0059b3;]change[/color]: updated gameplay.ini with newest supported options (ball_magnus, ball_scale_*)
 

All gameplay, gfx, and game.speed options were made possible @nesa24 's research.
Big kudos to him!

 

[color=#ff0000;]IMPORTANT: [/color]As usual, for all the details - see doc/scripting.txt. inside DOC Folder
Enjoy!

 

 

 

PS: search some .lua modules created by users on the other threads of this forum ;)



#2 marcap

marcap

    . : The KILLER : .

  • Admin
  • 17651 Messaggi:

Inviato 19 January 2017 - 07:29 PM

Perfetto  :)



#3 marcap

marcap

    . : The KILLER : .

  • Admin
  • 17651 Messaggi:

Inviato 20 January 2017 - 10:31 PM

L'hai provato? Per adesso a me non funge...

 

PS: ok funge.....ma credevo che potevamo mettere dei file .png o .dds direttamente e non dei .bin come in effetti avevo fatto con una struttura leggermente diversa e utilizzando lo stesso numero di file da cambiare.

Avevo preso la maglia dell'Inter (c01191g1.dds) e cambiando il numero (c0327p1.dds) che corrisponde alla maglia azzurra del Napoli.

Praticamente cosi':

common/character0/model/character/uniform/texture/c0327p1.dds

invece appunto va cosi:

common/character0/model/character/uniform/team/108  e con dentro i .bin  (108 è il Barça, esempio di Nesa)



#4 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 20 January 2017 - 10:51 PM

per il momento è più adatto per i file makers che vogliono testare i loro lavori al volo mentre il gioco rimane aperto, e senza bisogno di impacchetarli ogni volta in dei cpk... non mi sono impegnato più di tanto a capire come aggiungere i files... al momento sono a posto coi miei cpk

 

Io ne godo per la telecamera che mi sono impostato  io da molto in alto (camera sliders=80) e che uso al posto della telecamera dall'alto che usavo prima

 

Quest'ultima versione inoltre è comoda perchè non ti devi ricordare di premere un tasto della tastiera per attivare le funzioni del sider



#5 marcap

marcap

    . : The KILLER : .

  • Admin
  • 17651 Messaggi:

Inviato 21 January 2017 - 11:05 AM

Ho voluto fare una prova: aprire il file ptepatch_kit.cpk con il programma cpk_manager e vedere di usare il tool di Juce e Nesa con la path usata da me nel test precedente visto che la PTE ha la precedenza su alcuni file konami. La cosa strana è che il cpk_manager non riconosce il file ptepatch_kit.cpk quindi non me lo apre. Veramente strano essendo pur sempre un .cpk



#6 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 21 January 2017 - 03:29 PM

io per aprire i cpk files uso il 

 

CriPackedFileMaker: mega:///#!Ek9XFDYL!rqMFw5IikDT8LO3PXmOzQk4ytaR8eJ0k2FEunFzyjfs



#7 marcap

marcap

    . : The KILLER : .

  • Admin
  • 17651 Messaggi:

Inviato 21 January 2017 - 04:15 PM

Si quello va bene per aprirli ma per vedere cosa c'è dentro e cambiare esempio le maglie ho sempre usato il cpk_manager.

Questa è per esempio la maglia del Barça, se io sopra ci metto quella della juve avro' il Barça  a strisce.

 

Allega File  ScreenHunter_02 Jan. 21 15.54.jpg   181.44K   1 Numero di scaricamenti



#8 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 22 January 2017 - 11:02 PM

Sider 3.0.2
small update:
- added support for relative paths for cpk-roots.
- added example root with a ball by @-cRoNoS-
- sider now checks to see if it is already running, and won't start another instance of self if so.

DOWNLOAD:
http://mapote.com/pes/sider-3.0.2.zip



#9 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 24 January 2017 - 08:50 PM

nuovo update:

 

Sider 3.1.0
- major update on how things work internally.
- fixed issues with handling of large files (such as movies, animated aboards, music, etc.)

DOWNLOAD:
http://mapote.com/pes/sider-3.1.0.zip
 


#10 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 26 January 2017 - 01:03 PM

nuovo update:

 

Sider 3.1.1
- fixing problem with "live" file replacements, which 3.1.0 had. This works again.
- performance improvement: eliminate unnecessary seeks in game cpk-files
- re-worked internals once again to use less cpu/memory.

DOWNLOAD:
http://mapote.com/pes/sider-3.1.1.zip

 



#11 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 29 January 2017 - 09:35 PM

Sider 3.1.2 http://mapote.com/pes/sider-3.1.2.zip Small maintenance release: - now works again on Mac, using wine, with Wineskin wrapper or PlayOnMac. - normalized debug logging.

 

 



#12 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 01 February 2017 - 07:19 AM

Sider 3.2.0
Little update with some research magic from @nesa24:
- turn off the black bars during the matches - to use more of your monitor and see more of the field

DOWNLOAD:
http://mapote.com/pes/sider-3.2.0.zip

How to activate: you will need to modify your sider.ini - notice the new "black.bars.off" setting there. By default it is set to 0 - meaning no action, keep the black bars. If you change that to 1, then the black bars will be gone during the matches, and also in the main menu. (Some other menus and edit mode will still have the bars).
Kudos to Master Nesa, who found the code location!

 



#13 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 16 March 2017 - 11:52 PM

aggiornato in prima pagina nuova versione del sider con lua scripting per moduli simili al kitserver come trofei e seconda maglia portieri

 

per approfondimenti su cosa sia LUA:

 

https://www.lua.org/



#14 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 24 March 2017 - 11:30 AM

nuovo aggiornamento:

 

Sider 3.3.1
https://mapote.com/pes/sider-3.3.1.zip

What's new: Lua support fixes and new features:
- [color=#0059b3;][FIX][/color] tournament_id is now available in the context as early as possible
- [color=#336600;][NEW][/color] set_stadium event: you can change stadium, timeofday, weather, and season
- [color=#336600;][NEW][/color] set_match_time event: change match duration (number of minutes)

See examples of using these new features in modules/
For all details: read updated documentation in docs/scripting.txt



#15 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 26 March 2017 - 08:03 PM

Sider 3.3.2
https://mapote.com/pes/sider-3.3.2.zip

- [color=#0059b3;][FIX][/color]: stadium thumbnail and name are now correctly shown before kick-off
-[color=#59b300;] [NEW][/color]: match_info in context: can be used to determine if the match is a final
- [color=#59b300;][NEW][/color]: match_leg in context: is set to 1 or 2, for two-legged knocked-out rounds

See docs/scripting.txt for information about "match_info". It varies based on what the match is.
See modules/stadium.lua - for how to determine a tournament final. Basically it's like this:
 

Code:
-- check if this is UEFA CL final:if ctx.tournament_id == 13 and ctx.match_info == 53 then    ...end


#16 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 30 March 2017 - 06:49 PM

Sider 3.3.3
https://mapote.com/pes/sider-3.3.3.zip

- [color=#00b300;][New][/color]: get_ball_name event - for use with ball-server
- [color=#00b300;][New][/color]: is_edit mode field in the context object (and new events for entering/exiting edit mode)
- [color=#00b300;][New][/color]: memory library - to search, read, and write memory.

See doc/scripting.txt for details on all of the new stuff.



#17 marcap

marcap

    . : The KILLER : .

  • Admin
  • 17651 Messaggi:

Inviato 30 March 2017 - 08:41 PM

Juce lavora come un pazzo......

 

PS: è un bel po' che non gioco.......



#18 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 08 April 2017 - 11:03 AM

nuovo aggiornamento by juce:

 

Sider 3.3.4
https://mapote.com/pes/sider-3.3.4.zip

This is mostly a maintenance (bug-fix) release:

- [color=#0080ff;][FIX][/color]: In Master League games context object was filled with garbage after a goal or a foul (replay). This was also causing crashes, due to bad memory accesses. This is now fixed.
- [color=#59b300;][NEW][/color]: get_stadium_name event : useful for stadium-server ... You know, if there is one in the future Immagine Postata
- [color=#b300b3;][CHANGE][/color]: set_stadium event has been split into two different ones: set_stadium and set_conditions. Both events provide information about stadium, time-of-day, season, and weather, but they allow to change different parts of it: set_stadium - stadium only, set_conditions - timeofday, season, weather.

As usual, for all the details - see doc/scripting.txt.
Enjoy!

 



#19 marcap

marcap

    . : The KILLER : .

  • Admin
  • 17651 Messaggi:

Inviato 08 April 2017 - 11:52 AM

Bisogna assolutamente che giochi......ma fuori c'è il sole....



#20 energia

energia

    NRG

  • Admin
  • 1081 Messaggi:

Inviato 23 April 2017 - 10:19 AM

Ed ecco un ottimo modulo per il sider

modulo lua per sider:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[sider module] Stadium-server by Zlac:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here's the StadiumServer Lua module for PES 2017 Sider.

Current version: 1.0
Minimum version of Sider required: 3.3.4

Features:
  • GDB-style unlimited stadium management
  • mostly unchanged stadium packaging - entire stadium directory tree (starting with "common" folder) can be copy-pasted into one top-level folder (usually indicating stadium name)
    • supported folders from the usual stadium-related cpk-tree:
      • commonbgmodelbg
        • ad, audi, bill, cheer, effect, pitch, scarecrow, sky, stadium, staff, tv
      • commondemofixdemo
        • end, ent
      • commonrendermodelbghit
        • bill, stadium
      • commonrenderthumbnailstadium
    • IMPORTANT: [color=#ff0000;]db files (commonetc...) for stadium registration are not required. DO NOT INCLUDE THOSE!![/color]
  • stadium assignment to individual home teams via [font="'Courier New';"]map_teams.txt[/font] file
  • stadium assignment to competitions via [font="'Courier New';"]map_competitions.txt[/font] file - i.e. all teams participating in particular competition will use identical stadium
    • IMPORTANT: by default, competition assignment always takes priority over team assignment in all modes except Exhibition mode matches
      • but, there's a way to override that behavior for any individual competition - by slightly modifying StadiumServer.lua script itself, you can add/remove competition IDs in [font="'Courier New';"]override_competitions[/font] table, thus defining more or less competitions where team assignment takes priority over competition assignment
    • support for optional stadium to be used in final match only ([color=rgb(255,0,0);]not tested yet, hopefully it works[/color])
  • correct stadium previews and stadium names are displayed in game menus (where available, depending on game mode) and scoreboards
  • while in edit mode, stadium server does nothing
Current limitations/issues:
  • adboards handling - by default, stadium server will load commonbgmodelbgbill related files (including config.xml!!) if they exist within custom stadium files. If you'd like to use your already configured .cpk adboards packs, you can comment-out single line of code in StadiumServer.lua to disable adboards serving (see the code, it is noted where that line of code is)
  • [color=#ff0000;]IMPORTANT: cooperation with other .lua scripts that use "set_stadium" event [/color]- unfortunately, because of the way the stadiums are structured and handled by the game, it was necessary for StadiumServer.lua to use set_stadium event to force the game to use the exact stadium ID of the new stadium, in order to load all the files that belong to that stadium. Another approach, which would not "steal" set_stadium event (i.e. trying to override the files of any stadium that the game would like to use) did not prove successful, because stadiums simply are not file-for-file compatible, causing various artifacts when trying to replace e.g. stadium using ID 016 with custom stadium using any other ID
  • Bottom-line - if you want StadiumServer to work, you must not use any other .lua scripts that use set_stadium event to change stadium_id
  • you can still use additional .lua scripts to modify stadium conditions (day/night, weather, summer/winter) by using newly introduced set_conditions event (see Sider 3.3.4 release notes) - just to be on the safe side of the story, place your set_conditions related scripts below StadiumServer.lua in sider.ini
[/list]Recommended way to package stadiums that are available in .cpk files
  • Although extracted stadium packs may work without any problems, I'd recommend to use only one stadium per folder in [font="'Courier New';"]contentstadium-server[/font].
  • It is recommended to remove any files that are not directly related to stadium (especially commonetc... files)
How to use:
  • Unpack the archive and copy folders 'content' and 'modules' inside your sider 3.3.4 folder
  • Add [font="'Courier New';"]lua.module = "StadiumServer.lua"[/font] near the top of the [font="'Courier New';"]Extension modules[/font] section in [font="'Courier New';"]sider.ini[/font]
  • Customize [font="'Courier New';"]map_teams.txt[/font] and [font="'Courier New';"]map_competitions.txt[/font] files and add more stadium folders in [font="'Courier New';"]contentstadium-server[/font] folder
  • [color=#ff0000;]Please, read carefully all the comments inside[/color] [font="'Courier New';"][color=rgb(255,0,0);]map_teams.txt[/color][/font][color=rgb(255,0,0);] and [/color][font="'Courier New';"][color=rgb(255,0,0);]map_competitions.txt[/color][/font][color=rgb(255,0,0);] files! Always use leading zeroes when writing stadium ID's![/color]
Credits:
  • @juce and @nesa24 for sider
  • Stadium master-pieces used in this demo-release: @Yucel11 "Fenerbachce Ülker Stadium" and "Türk Telekom Arena"

Changes and fixes:
-

Download:
Link v1.0
Please, do not re-upload to other services

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

stadium server by zlac with Serie A stadiums pack inserted by sonosfsam69

Spoiler