Stadium Server R App

What is your experience with the stadium server app?

  • I am using it with no problem

    Votes: 4 44.4%
  • I tried but failed to get it work

    Votes: 1 11.1%
  • It looks way too complcate for me

    Votes: 4 44.4%
  • I am using it but it is buggy

    Votes: 0 0.0%

  • Total voters
    9

Papinho81

Youth Team
@Papinho81 can you please check the stadium files in Mediafire host? I think it has broken while showing "Generating new download key", and not allow to download anymore

Thanks for reporting! That's the first time it happens to me with mediafire. I will reupload the file and share the new link ASAP.

EDIT: Same thing is happening with the newly uploaded file, Could it be a new mediafire limit on file size?
I will upload it to my google drive.

NEW LINK toward the stad_source_files.zip file
https://drive.google.com/file/d/1hNV-UkX_uLis1DHb8IzncFUCUuUR_jnz/view?usp=sharing
 
Last edited:

dinei

Youth Team
I can't change the current game folder location and exe location. What I did wrong?

Sem título.png
 

Papinho81

Youth Team
Did you click on the browse button on the right?

It looks like I let the file I use with my path instead of providing an empty one sorry for that.
 
Last edited:

Papinho81

Youth Team
Ok, just close the App window and type Stadium _Server() again it should be fine in the new opening window! Click browse your change should be displayed.
 
Last edited:

Papinho81

Youth Team
I ve been able to reproduce your problem. The link toward the game folder is not immediately updated when clicking the browse button. It is saved for the next session but not ready for the current one.
Thanks for pointing it out. I will fix it asap.
Not a big deal though. If you need to change your path, click browse, navigate to your pathes, close the app window, type Stadium_Server() to open the app window again, done now your change is correctly displayed.
If you don't want to type Stadium_Server() again, on the R console you can press the UP keyboard then enter. It will execute the last command.

Normally with the empty files I used to provide with the previous versions, you are asked to provide the path right at the beginning when the app opens. With the file with my path this window doesn't pop up on the very first session.
 
Last edited:

dinei

Youth Team
When I try to change the path for game folder and exe, this message appears in the console:

could not find function "tk_choose.dir"
Error in tk_choose.dir(default = game_dir_default$value, caption = "Select Game folder") :
could not find function "tk_choose.dir"
Error in tk_choose.files(default = game_exe_default$value, caption = "Select your Game exe!", :
could not find function "tk_choose.files"
 

Papinho81

Youth Team
When I try to change the path for game folder and exe, this message appears in the console:

could not find function "tk_choose.dir"
Error in tk_choose.dir(default = game_dir_default$value, caption = "Select Game folder") :
could not find function "tk_choose.dir"
Error in tk_choose.files(default = game_exe_default$value, caption = "Select your Game exe!", :
could not find function "tk_choose.files"
Ok that's a library that didn't installed correctly. You probably have skipped one of the message during the library installation.

You need to open R guide and send the command:
install.packages("gWidgetstcltk")
install.packages("gWidgets2RGtk2")

Windows should pop up asking if GTK is needed, click install GTK then ok.

After that you can open the app window with the script or if you already saved a short cut of the session simply type Stadium_Server().

Let me know if it doesn't fix the problem for you.
 
Last edited:

Papinho81

Youth Team
@dinei I just checked and the package gWidgetstcltk has been deleted from the CRAN library repositary seven days ago. So this is absoultely not on you, I am sorry for the inconvenience.

You will hve to send this command the R console:
install.packages("gWidgetstcltk",repos="http://R-Forge.R-project.org")

Simply copy the line from here, paste in R and press enter.

After that, try to open the App using the script or the saved session short cut (if you saved one).
 

dinei

Youth Team
Now I can change the game folder and exe location.

A only observation: I've downloaded the 4.01 version for R, even using yours commands, it didn't work, the error is permantly. So, I unnistalled this version and downloaded the version that you did in your tutorial video, then works perfectly.

Thanks for you help!
 
Last edited:

Papinho81

Youth Team
Now I can change the game folder and exe location.

A only observation: I've donwloaded the 4.01 version for R, even using yours commands, it didn't work, the error is permantly. So, I unnistalled this version and downloaded the version that you did in your tutorial video, then works perfectly.

Thanks for you help!
Ok glad to know it is working for you now!
Thanks for sharing the info about the R version, I didn't update mine since ages (3.6.1). I will mention it in the manual for the next App update incoming.
 

Papinho81

Youth Team
I mentioned it in the pdf manual but this is a reminder.

The name of the stadium in stadiums.txt files exported with db master in the export something folder of the App must match the names displayed during the kickoff hub in the game. Otherwise the App may fail to load some default game stadiums (wrong stadium being loaded).


The best way to check this, is to open your db with CM16, go to the stadiums and check one by one if the first name (the db one) is the same than the second one (language db?) If they are not copy the second one and paste it in the first one. Save then export the stadiums.txt file again.

This can be done during an ongoing career, you just need to back up your db before doing it and right after you exported the edited stadiums.txt file to the export something folder of the App, copy your backed up database and replace the edited one to avoid problems with ongoing careers.
 

dinei

Youth Team
@Papinho81 Unfortunately the tool still not working for me.
Now I can change everytinhg, add stadium but, the choice stadium doesn't appear ingame. I can't hear the "beep". When I use the command Stadium_Server() these messages appear in the R console.
I think I've did every sigle step correctly.

Loading required package: beepr
Warning messages:
1: package ‘digest’ was built under R version 3.6.3
2: package ‘stringdist’ was built under R version 3.6.3
3: package ‘magick’ was built under R version 3.6.3
4: package ‘tesseract’ was built under R version 3.6.3
5: package ‘gWidgets2RGtk2’ was built under R version 3.6.3
6: package ‘memoise’ was built under R version 3.6.3
7: package ‘gWidgets2’ was built under R version 3.6.3
8: package ‘beepr’ was built under R version 3.6.3
>

upload_2020-6-9_18-20-10.png
 

Papinho81

Youth Team
@dinei there is no message error so the tool seems to work correctly.
Do you press the key $ when the kickoff hub is shown?
Previously it was a and s but not anymore.

Normally after you press $ you should here a first short mario sound and after some time (depending on the files size) you should here another mario sound.
Make sure the statut of the stadium server says running and that a python window is open. Both seems allright from your screenshot.
 
Last edited:

dinei

Youth Team
Now I can hear the "beep", but the stadium not appear.

Error in team_db[which(score_home_best == max(score_home_best)), "teamid"][[1]] :
índice fora de limites

What means this message?
 

Papinho81

Youth Team
Now I can hear the "beep", but the stadium not appear.

Error in team_db[which(score_home_best == max(score_home_best)), "teamid"][[1]] :
índice fora de limites

What means this message?

It happens to me when I press $ at the wrong time.
Click the STOP button then RUN again and in game at the kick off hub press $.

You must be in full screen (at least border less).


The kick off hub is at min 5:23 for exemple in the video:
 
Last edited:

Papinho81

Youth Team
Thanks, mate! Now the tool works!!!

Great! I am happy it is working for you now.

Just remember that you have to press $ before every game, even with default game stadiums such as Bernabeu. And take good notice of the message I posted today about the difference in name displayed between the db and the kick off hub.

For example if you use FIP, the name of Liverpool stadium in the stadium.txt file of the db is Anfield but the kick off hub display Anfield Stadium. Because of that the app fails to load Anfield correctly. It can be a problem for teams that do not appear in the stadiumasignement table of the db.
 


Top