You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate to new EJS CDN, and save state tweaks (#264)
* Saved game icon now displays on game cover art in library
* Fixed casing error on save state download icon
* Migrate EJS from submodule to 7z download during docker build
* Updated README and gitignore
* Resized library search buttons
* Export to JSON now triggers the download rather than display of a formatted platform map
Copy file name to clipboardExpand all lines: README.MD
+5-13
Original file line number
Diff line number
Diff line change
@@ -85,10 +85,9 @@ Dockerfile and docker-compose.yml files have been provided to make deployment of
85
85
Dockerfile and docker-compose-build.yml files have been provided to make deployment of the server as easy as possible.
86
86
1. Clone the repo with ```git clone https://github.com/gaseous-project/gaseous-server.git```
87
87
2. Change into the gaseous-server directory
88
-
3. Clone the submodules with the command ```git submodule update --init```
89
-
4. Open the docker-compose-{database}-build.yml file and edit the igdbclientid and igdbclientsecret to the values retrieved from your IGDB account
90
-
5. Run the command ```docker-compose --file docker-compose-{database}-build.yml up -d```
91
-
6. Connect to the host on port 5198
88
+
3. Open the docker-compose-{database}-build.yml file and edit the igdbclientid and igdbclientsecret to the values retrieved from your IGDB account
89
+
4. Run the command ```docker-compose --file docker-compose-{database}-build.yml up -d```
90
+
5. Connect to the host on port 5198
92
91
93
92
## Source
94
93
### Build and deploy
@@ -100,8 +99,7 @@ Dockerfile and docker-compose-build.yml files have been provided to make deploym
100
99
5. Change into the gaseous-server directory
101
100
6. As the main branch is the development branch, you might want to change to a stable version - these are tagged with a version number. For example to change to the 1.5.0 release, use the command ```git checkout v1.5.0```
102
101
* Check the releases page for the version you would like to run: https://github.com/gaseous-project/gaseous-server/releases
103
-
7. Clone the submodules with the command ```git submodule update --init --recursive```
104
-
* This command will clone the code that the server uses from other projects (currently only EmulatorJS)
102
+
7. Download the emulator files from ```https://cdn.emulatorjs.org/releases/4.0.9.zip``` and extract the files to ```gaseous-server/wwwroot/emulators/EmulatorJS```
105
103
8. Create a directory in the home directory of the user that will run the server. For example, if running as the user ```gaseous```, create the directory ```/home/gaseous/.gaseous-server```
106
104
9. Change into the ```.gaseous-server``` directory created in the previous step
107
105
10. Copy the JSON from the config file above into a new file named ```config.json```
@@ -115,11 +113,6 @@ Dockerfile and docker-compose-build.yml files have been provided to make deploym
115
113
116
114
**Note**: The above instructions were tested on macOS Ventura, and Ubuntu 22.04.3. There was a report that Debian 11 had an issue with the git submodule commands (see: https://github.com/gaseous-project/gaseous-server/issues/71). This was possibly due to an older git package.
117
115
118
-
If the git submodule commands aren't working, you can:
119
-
1. change to the ```gaseous-server/wwwroot/emulators``` directory
120
-
2. delete the ```EmulatorJS``` directory
121
-
3. clone the EmulatorJS repository with ```git clone https://github.com/EmulatorJS/EmulatorJS.git```
122
-
123
116
### Updating from source
124
117
1. Stop the server
125
118
2. Switch to the source directory
@@ -128,8 +121,7 @@ If the git submodule commands aren't working, you can:
128
121
* If running from another branch or tag, run:
129
122
*```git fetch```
130
123
*```git checkout <branch or tag name>```
131
-
4. Update the submodules with ```git submodule update --recursive```
132
-
5. Run steps 12 and 13 from the above Build guide
124
+
4. Run steps 12 and 13 from the above Build guide
133
125
134
126
# Adding Content
135
127
While games can be added to the server without them, it is recommended adding some signature DAT files beforehand to allow for better matching of ROMs to games.
stringsql="SELECT DISTINCT RomMediaGroup.*, GameState.RomId AS GameStateRomId FROM gaseous.RomMediaGroup LEFT JOIN GameState ON RomMediaGroup.Id = GameState.RomId AND GameState.IsMediaGroup = 1 WHERE RomMediaGroup.Id=@id;";
stringsql="SELECT DISTINCT RomMediaGroup.*, GameState.RomId AS GameStateRomId FROM gaseous.RomMediaGroup LEFT JOIN GameState ON RomMediaGroup.Id = GameState.RomId AND GameState.IsMediaGroup = 1 AND GameState.UserId = @userid WHERE RomMediaGroup.Id=@id;";
stringsql="SELECT DISTINCT RomMediaGroup.*, GameState.RomId AS GameStateRomId FROM gaseous.RomMediaGroup LEFT JOIN GameState ON RomMediaGroup.Id = GameState.RomId AND GameState.IsMediaGroup = 1 WHERE RomMediaGroup.GameId=@gameid;";
stringsql="SELECT DISTINCT RomMediaGroup.*, GameState.RomId AS GameStateRomId FROM gaseous.RomMediaGroup LEFT JOIN GameState ON RomMediaGroup.Id = GameState.RomId AND GameState.IsMediaGroup = 1 AND GameState.UserId = @userid WHERE RomMediaGroup.GameId=@gameid;";
stringsql="SELECT DISTINCT Game.Id, Game.`Name`, Game.NameThe, Game.PlatformId, Game.TotalRating, Game.TotalRatingCount, Game.Cover, Game.Artworks, Game.FirstReleaseDate, Game.Category, Game.ParentGame, Game.AgeRatings, Game.AgeGroupId, Game.RomCount FROM (SELECT DISTINCT Game.*, CASE WHEN Game.`Name` LIKE 'The %' THEN CONCAT(TRIM(SUBSTR(Game.`Name` FROM 4)), ', The') ELSE Game.`Name` END AS NameThe, Games_Roms.PlatformId, AgeGroup.AgeGroupId, COUNT(Games_Roms.Id) AS RomCount FROM Game LEFT JOIN AgeGroup ON Game.Id = AgeGroup.GameId LEFT JOIN Games_Roms ON Game.Id = Games_Roms.GameId"+platformWhereClause+" LEFT JOIN AlternativeName ON Game.Id = AlternativeName.Game "+nameWhereClause+" GROUP BY Game.Id HAVING RomCount > 0) Game LEFT JOIN Relation_Game_Genres ON Game.Id = Relation_Game_Genres.GameId LEFT JOIN Relation_Game_GameModes ON Game.Id = Relation_Game_GameModes.GameId LEFT JOIN Relation_Game_PlayerPerspectives ON Game.Id = Relation_Game_PlayerPerspectives.GameId LEFT JOIN Relation_Game_Themes ON Game.Id = Relation_Game_Themes.GameId "+whereClause+" "+havingClause+" "+orderByClause;
0 commit comments