Salta al contenuto



Alterna Shoutbox Urlobox

Non e' stato inserito nessun grido nella Shoutbox, perche' non aggiungere un grido per iniziare?

Foto

[sider .lua Module] Stadium-Server by zlac

stadiums server pes 2017 stad

  • Please log in to reply
6 replies to this topic

#1 energia

energia

    NRG

  • Moderatore
  • 1064 Messaggi:

Inviato 18 May 2017 - 10:14 PM

Current version: 1.3
Minimum version of Sider required: 3.4.1

Features:

# GDB-style unlimited stadium management - add as many stadiums as you want in a GDB-like folder structure

# Mostly unchanged stadium packaging - stadium structure remains almost identical to the .cpk version, meaning that entire stadium directory tree (starting with "common" folder) can be copy-pasted into one top-level GDB folder. These folders from the usual stadium-related cpk-tree are currently supported:

  • common\bg\model\bg
    • ad, audi, bill, cheer, effect, pitch, scarecrow, sky, stadium, staff, tv (bigflag, cornerflag and goal in v1.1)
  • common\demo\fixdemo
    • end, ent (change, goal and result in v1.1)
  • common\demo\anime\behavior\fixdemo\animations (v1.1)
  • common\demo\fixdemoobj\passage (v1.1)
  • common\demo\light (v1.1)
  • common\demo\mob\mob_* (v1.1)
  • common\render\model\bg\hit
    • bill, stadium
  • common\render\thumbnail\stadium
IMPORTANT: db files (common\etc\...) for stadium registration are not required. DO NOT INCLUDE THOSE!!


# Stadium assignment to individual home teams via map_teams.txt file - pretty much self-explanatory, see the supplied map_teams.txt file for examples of how to connect team ID with one GDB-stadium

# Stadium assignment to competitions via map_competitions.txt file - use it to connect competition/tournament ID with one or more stadiums from GDB.
All teams participating in particular competition can either use identical stadium (if ony one stadium is assigned to that competition) or have one of the stadiums assigned randomly (v1.1 feature) if there's more than one stadium assigned to that competition.
 

## v1.1 - It is possible to assign unlimited number of stadiums to the same competition - in this case, ONE RANDOM stadium will be selected for every home team that:
  1. participates in that competition, BUT
  2. DOES NOT have individual stadium assigned in map_teams.txt file
     
  1. Code:
    39, 003, Villa Park, Villa Park, , ,    # EPL
    39, 017, Turf Moor, Turf Moor, , ,    # EPL
    39, 020, White Hart Lane, White Hart Lane, , ,    # EPL

IMPORTANT: by default, competition assignment would always take priority over team assignment in any game mode, but that can be easily configured within .lua script.
To override this default behavior you have to slightly modify StadiumServer.lua script itself - add/remove competition IDs in override_competitions table, thus defining more or less competitions where individual team assignments from map_teams.txt takes priority over competition assignment from map_competitions.txt
Since v1.1, because of newly introduced random stadium selection option for competitions, override_competitions table has been vastly increased to include all exhibition, league and league-cup matches - you can keep individual stadiums for those teams that already have one in map_teams.txt, while all the other teams without individual stadium would get randomly selected stadium from map_competitions.txt

## Support for optional stadium to be used in final match of the competition only - again, pretty much self-explanatory. See map_competitions.txt file for more details


v1.1 - CAUTION: if multiple stadiums are assigned to a single competition and you want to use specific stadium for finals, then you must include stadium for final match IN EVERY stadium assignment
 
84, 003, Villa Park, Villa Park, 004, Wembley, Wembley            # FA Cup
84, 017, Turf Moor, Turf Moor, 004, Wembley, Wembley            # FA Cup
84, 020, White Hart Lane, White Hart Lane, 004, Wembley, Wembley    # FA Cup
 
 

# Exhibition mode behavior [v1.3] - stadium assignment logic has been refined to be more in-line with the usual game behavior:

  • IMPORTANT CHANGE: Stadium server will be active in exhibition mode ONLY if you have selected either "Home ground" or "Random" setting. This enables you to use any stadium from your .cpk pack and additional stadium server's stadiums side by side.
  • "Random" setting in exhibition mode is going to select stadium either from your .cpk pack or from stadium server's repository.

Complementing this change, additional lua table is available, to customize which teams should keep their .cpk+EDIT assigned home grounds (e.g. Barcelona -> Konami's Camp Nou, Team X -> Stadium X from your .cpk, etc.). See this post for an example.

# Correct stadium previews and stadium names - displayed in game menus (where available, depending on game mode) and scoreboards

# Support for replay mode [v1.3]

# Stadium server is deactivated in edit mode


Current limitations/issues:

1. adboards handling
- by default, stadium server will load common\bg\model\bg\bill 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)

2. IMPORTANT: cooperation with other .lua scripts that use "set_stadium" event - 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

3. Not always accurate stadium selection during saved replays playback [v1.3] - saved replay files do not store tournament_id info. If the stadium used in saved replay has been assigned via map_competitions.txt, then it is not possible for stadium server to make accurate re-selection of that particular stadium during replay playback.


Recommended way to re-pack 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 content\stadium-server.
  • It is recommended to remove any files that are not directly related to stadium (especially common\etc\... files)

How to use:


  1. Unpack the v1.0 archive and copy folders 'content' and 'modules' inside your sider folder. Unpack v1.3 archive and copy/overwrite extracted StadiumServer.lua to sider\modules folder.
  2. Add lua.module = "StadiumServer.lua" near the top of the Extension modules section in sider.ini
  3. Customize map_teams.txt and map_competitions.txt files and add more stadium folders in content\stadium-server folder
    • Please, read carefully all the comments inside map_teams.txt and map_competitions.txt files! Always use leading zeroes when writing stadium ID's!

Credits:


  1. @juce and @nesa24 for sider
  2. Stadium master-pieces used in this demo-release: @Yucel11 "Fenerbachce Ülker Stadium" and "Türk Telekom Arena"

Download:
Link v1.0 (base pack)
Link v1.3 (updated script only)
Please, do not re-upload to other services



#2 Lucida7883

Lucida7883

    Esordiente

  • Members
  • 74 Messaggi:

Inviato 19 May 2017 - 07:07 PM

e nuovo aggiornamento anche dell'ottimo modulo lua stadium-server di zlac sempre in prima pagina

Ho scricato sia il nuovo sider 3.4.2 sia il modulo 1.3 stadium server ma quando avvio il gioco non mi riconosce gli stadi sconpattati ma solo quelli del cpk. Come mai? Occorre fare qulche modifica al modulo?

#3 energia

energia

    NRG

  • Moderatore
  • 1064 Messaggi:

Inviato 20 May 2017 - 01:23 AM

Ho scricato sia il nuovo sider 3.4.2 sia il modulo 1.3 stadium server ma quando avvio il gioco non mi riconosce gli stadi sconpattati ma solo quelli del cpk. Come mai? Occorre fare qulche modifica al modulo?

 

no ora lo stadium server funziona come il gioco pulito:

 

 

Changes/New features

1. Fix for replay mode - there should be no more infinite loads. Some stadium is going to be selected - sometimes it will not be the one that was used while saving the replay, but one of the available stadiums will be selected - either by the stadium server or by the sider itself (ultimate "safety net", which selects the first available .cpk stadium in situations where stadium server fails to find any match for the stadium ID used in replay). Why is it not possible to make more accurate selection? Because tournament_ID is not saved in replay files. Game over.

2. Changed stadium assignment logic for exhibition modes only
Since sider 3.4.0 introduced ctx.stadium_choice field, which can be used in exhibition mode to check if user has selected "Home ground" or "Random" option in "Stadium menu", stadium assignment logic has been refined to be more in-line with the usual game behavior:


  • THE MOST IMPORTANT CHANGE: Stadium server will be active in exhibition mode ONLY if you have selected either "Home ground" or "Random" setting. If these are NOT selected, then stadium server is no longer "replacing" every stadium with the new one. This enables you to use any stadium from your .cpk pack if you want to (simply select it in stadium menu) and additional stadium server's stadiums side by side.
  • "Random" setting in exhibition mode is going to select stadium either from your .cpk pack or from stadium server's repository
3. Additional customizable lua table is added to the script - so that you can customize which teams should keep using their .cpk+EDIT00000000 assigned home grounds (e.g. Barcelona -> Konami's Camp Nou, Team X -> Stadium X from your .cpk, etc.) - a.k.a. "exclusive .cpk home grounds table"

4. NO CHANGES to the stadium assignment logic in competition modes

5. Structure of .txt map files HAS NOT BEEN CHANGED

Initial "exclusive .cpk home grounds table" included in Stadium Server v1.3

-- specify the IDs of the teams which already have their real homegrounds assigned via .cpk + EDIT00000000
-- if not listed here, their .cpk homeground may be overriden by map_competition.txt assignment ...
-- ... e.g. Barcelona and Camp Nou: if you assign generic stadiums to La Liga in map_competition.txt and DO NOT assign external Camp Nou to Barca via map_teams.txt, then ...
-- ... Barcelona would never use Camp Nou from .cpk in La Liga-related competition modes - it would use one of the random generics for La Liga
-- Only the teams with original Konami stadiums are listed initially!
-- ADD YOUR OWN TEAM ID'S, BASED ON YOUR EDIT00000000's STADIUM ASSIGNMENTS FROM THE .CPK PACK THAT YOU USE!!
-- BEGIN CUSTOMIZABLE LUA TABLE
local teams_with_cpk_homegrounds = {
      108,    -- Barcelona (Camp Nou)
      119,    -- Internazionale (Giuseppe Meazza)
      121,    -- Milan (San Siro)
      1706,    -- Basel (St. Jakob Park)
      1255,    -- Sao Paulo (Estadio do Morumbi)
      1254,    -- Santos (Estadio Urbano Caldeira)
      138,    -- River Plate (El Monumental)
      139,    -- Boca Juniors (Estadio Alberto J. Armando)
      147,    -- Urawa Red Diamonds (Saitama Stadium 2002)
      }
-- END CUSTOMIZABLE LUA TABLE

 

 

 

 

 

si attiva solo se hai scelto nel menù del gioco gli stadi casuali o  lo stadio di casa, altrimenti manualmente puoi scegliere i 40 stadi del tuo cpk... ma se lasci stadio di casa gli stadi assegnati saranno quelli tramite il teams-map dello stadium server come priorità.

 

naturalmente ricordati di rimettere a posto il tuo sider.ini con l'attivazione dello stadiumserver.lua



#4 Lucida7883

Lucida7883

    Esordiente

  • Members
  • 74 Messaggi:

Inviato 20 May 2017 - 01:00 PM

 
no ora lo stadium server funziona come il gioco pulito:
 


Changes/New features

1. Fix for replay mode - there should be no more infinite loads. Some stadium is going to be selected - sometimes it will not be the one that was used while saving the replay, but one of the available stadiums will be selected - either by the stadium server or by the sider itself (ultimate "safety net", which selects the first available .cpk stadium in situations where stadium server fails to find any match for the stadium ID used in replay). Why is it not possible to make more accurate selection? Because tournament_ID is not saved in replay files. Game over.

2. Changed stadium assignment logic for exhibition modes only
Since sider 3.4.0 introduced ctx.stadium_choice field, which can be used in exhibition mode to check if user has selected "Home ground" or "Random" option in "Stadium menu", stadium assignment logic has been refined to be more in-line with the usual game behavior:

  • THE MOST IMPORTANT CHANGE: Stadium server will be active in exhibition mode ONLY if you have selected either "Home ground" or "Random" setting. If these are NOT selected, then stadium server is no longer "replacing" every stadium with the new one. This enables you to use any stadium from your .cpk pack if you want to (simply select it in stadium menu) and additional stadium server's stadiums side by side.
  • "Random" setting in exhibition mode is going to select stadium either from your .cpk pack or from stadium server's repository
3. Additional customizable lua table is added to the script - so that you can customize which teams should keep using their .cpk+EDIT00000000 assigned home grounds (e.g. Barcelona -> Konami's Camp Nou, Team X -> Stadium X from your .cpk, etc.) - a.k.a. "exclusive .cpk home grounds table"

4. NO CHANGES to the stadium assignment logic in competition modes

5. Structure of .txt map files HAS NOT BEEN CHANGED


Initial "exclusive .cpk home grounds table" included in Stadium Server v1.3


 
-- specify the IDs of the teams which already have their real homegrounds assigned via .cpk + EDIT00000000
-- if not listed here, their .cpk homeground may be overriden by map_competition.txt assignment ...
-- ... e.g. Barcelona and Camp Nou: if you assign generic stadiums to La Liga in map_competition.txt and DO NOT assign external Camp Nou to Barca via map_teams.txt, then ...
-- ... Barcelona would never use Camp Nou from .cpk in La Liga-related competition modes - it would use one of the random generics for La Liga
-- Only the teams with original Konami stadiums are listed initially!
-- ADD YOUR OWN TEAM ID'S, BASED ON YOUR EDIT00000000's STADIUM ASSIGNMENTS FROM THE .CPK PACK THAT YOU USE!!
-- BEGIN CUSTOMIZABLE LUA TABLE
local teams_with_cpk_homegrounds = {
      108,    -- Barcelona (Camp Nou)
      119,    -- Internazionale (Giuseppe Meazza)
      121,    -- Milan (San Siro)
      1706,    -- Basel (St. Jakob Park)
      1255,    -- Sao Paulo (Estadio do Morumbi)
      1254,    -- Santos (Estadio Urbano Caldeira)
      138,    -- River Plate (El Monumental)
      139,    -- Boca Juniors (Estadio Alberto J. Armando)
      147,    -- Urawa Red Diamonds (Saitama Stadium 2002)
      }
-- END CUSTOMIZABLE LUA TABLE
 
 
 
 
si attiva solo se hai scelto nel menù del gioco gli stadi casuali o  lo stadio di casa, altrimenti manualmente puoi scegliere i 40 stadi del tuo cpk... ma se lasci stadio di casa gli stadi assegnati saranno quelli tramite il teams-map dello stadium server come priorità.
 
naturalmente ricordati di rimettere a posto il tuo sider.ini con l'attivazione dello stadiumserver.lua

Ma ho capito male o deve uscire un'altra versione dello stadium server 1.3? Comunque seguo la procedura alla lettera



#5 energia

energia

    NRG

  • Moderatore
  • 1064 Messaggi:

Inviato 20 May 2017 - 01:37 PM

no quel post era riferito a questa versione 1.3



#6 Lucida7883

Lucida7883

    Esordiente

  • Members
  • 74 Messaggi:

Inviato 20 May 2017 - 02:15 PM

no quel post era riferito a questa versione 1.3

Ok



#7 Lucida7883

Lucida7883

    Esordiente

  • Members
  • 74 Messaggi:

Inviato 22 May 2017 - 11:12 PM

Allora ti spiego il problema. Fino al sider 3.4.1 con lo stadium server non avevo problemi. Ora col nuovo sider 3.4.2 e il nuovo stadium server quando provo in modalità esibizione gli stadi assegnati col map team mi accorgo che non vengono presi se scelgo stadio casa mentre prima si. Ho messo la lista nel nuovo stafium server delle squadre a cui ho asegnato in edit gli stadi cpk ma stesso problema. Anche in master league non mi prende gli stadi assegnati nel map conpetition. Io uso la peslover come base. Ecco il mio problema. Come pisso risolverlo?