mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 10:50:13 +01:00
129 lines
8.5 KiB
Text
129 lines
8.5 KiB
Text
====Goldberg Steam Emulator====
|
|
|
|
An emulator that supports LAN multiplayer without steam.
|
|
|
|
How to use: Replace the steam_api(64).dll (libsteam_api.so on linux) from the game with mine. (For linux make sure to use the right build).
|
|
Put a steam_appid.txt file that contains the appid of the game right beside it if there isn't one already.
|
|
|
|
|
|
If your game has an original steam_api(64).dll older than may 2016 (Properties->Digital Signatures->Timestamp) you might have to add a steam_interfaces.txt beside my emulator library if the game isn't working.
|
|
This file contains interface versions, an example (for resident evil 5) is provided.
|
|
If you are on Windows, look in the tools folder for a program to generate the steam_interfaces.txt file.
|
|
If you are on linux you can look in the linux/tools folder (or the scripts folder in the repo) for a script to generate the steam_interfaces.txt file.
|
|
You can also just get a hex editor and search for them (Search for the string: SteamUser0) in the original steam_api dll (or libsteam_api.so on linux) or look in the ini of a crack that works on that game.
|
|
|
|
|
|
If the game has DRM (other than steamworks) you need to remove/crack it first.
|
|
|
|
|
|
Default save location: C:\Users\<Your windows user name>\AppData\Roaming\Goldberg SteamEmu Saves\
|
|
For linux: $XDG_DATA_HOME/Goldberg SteamEmu Saves/ or if it's not defined: $HOME/.local/share/Goldberg SteamEmu Saves/
|
|
|
|
In the settings folder in that save location you will find 3 files (if you have used the emulator at least once):
|
|
account_name.txt (Edit this file to change your name)
|
|
listen_port.txt (Edit this file if you want to change the UDP/TCP port the emulator listens on (You should probably not change this because everyone needs to use the same port or you won't find yourselves on the network))
|
|
user_steam_id.txt (this is where your steam id is saved, you can change it (if your saves for a game are locked to a specific steam id see below for a way to change it on a per game basis) but it has to be valid)
|
|
language.txt (Edit this to change the language the emulator will report to the game, default is english, it must be a valid steam language name or the game might have weird behaviour (list provided at the end of this readme))
|
|
|
|
Note that these are global so you won't have to change them for each game. For game unique stuff (stats and remote storage) a folder is created with the appid of the game.
|
|
If you want to change your steam_id on a per game basis, simply create a settings folder in the game unique directory (Full path: C:\Users\<Your windows user name>\AppData\Roaming\Goldberg SteamEmu Saves\<appid>\settings)
|
|
In that settings folder create a user_steam_id.txt file that contains the valid steam id that you want to use for that game only.
|
|
|
|
If for some reason you want it to save in the game directory you can create a file named local_save.txt right beside steam_api(64).dll (libsteam_api.so on linux)
|
|
The only thing that file should contain is the name of the save directory. This can be useful if you want to use different global settings like a different account name or steam id for a particular game.
|
|
Note that this save directory will be beside where the emu dll (or .so) is which may not be the same as the game path.
|
|
|
|
DLC:
|
|
By default the emulator will try to unlock all DLCs (by returning true when the game calls the BIsDlcInstalled function). If the game uses the other function you will need to
|
|
provide a list of DLCs to my emulator. To do this first create a steam_settings folder right beside where you put my emulator.
|
|
In this folder, put a DLC.txt file. (path will be <path where my emu lib is>\steam_settings\DLC.txt)
|
|
If the DLC file is present, the emulator will only unlock the DLCs in that file. If the file is empty all DLCs will be locked.
|
|
The contents of this file are: appid=DLC name
|
|
See the steam_settings.EXAMPLE folder for an example.
|
|
|
|
App paths:
|
|
Some rare games might need to be provided one or more paths to app ids. For example the path to where a dlc is installed. This sets the paths returned by the Steam_Apps::GetAppInstallDir function.
|
|
See steam_settings.EXAMPLE\app_paths.EXAMPLE.txt for an example.
|
|
This file should be put here: <path where my emu lib is>\steam_settings\app_paths.txt
|
|
Note that paths are treated as relative paths from where the steam_api dll is located.
|
|
|
|
Mods:
|
|
Put your mods in the steam_settings\mods\ folder. The steam_settings folder must be placed right beside my emulator dll.
|
|
Mod folders must be a number corresponding to the file id of the mod.
|
|
See the steam_settings.EXAMPLE folder for an example.
|
|
|
|
Steam appid:
|
|
The best place to put your steam_appid.txt is in the steam_settings folder because this is where the emulator checks first.
|
|
If there is no steam_appid.txt in the steam_settings folder it will try opening it from the run path of the game. If one isn't there it will try to load it from beside my steam api dll.
|
|
The steam appid can also be set using the SteamAppId or SteamGameId env variables (this is how real steam tells games what their appid is).
|
|
|
|
Offline mode:
|
|
Some games that connect to online servers might only work if the steam emu behaves like steam is in offline mode. If you need this create a offline.txt file in the steam_settings folder.
|
|
|
|
Custom Broadcast ips:
|
|
If you want to set custom ips (or domains) which the emulator will send broadcast packets to, make a list of them, one on each line in: Goldberg SteamEmu Saves\settings\custom_broadcasts.txt
|
|
If the custom ips/domains are specific for one game only you can put the custom_broadcasts.txt in the steam_settings\ folder.
|
|
An example is provided in steam_settings.EXAMPLE\custom_broadcasts.EXAMPLE.txt
|
|
|
|
Achievements, Items or Inventory:
|
|
Create a folder named steam_settings right beside steam_api.dll if there isn't one already. In that folder, create a file named items.json and/or achievements.json which will contain every item/achievement you want to have in your game.
|
|
An example can be found in steam_settings.EXAMPLE that works with Killing Floor 2.
|
|
The items.json syntax is simple, you SHOULD validate your .json file before trying to run your game or you won't have any item in your inventory. Just look for "online json validator" on your web brower to valide your file.
|
|
You can use https://steamdb.info/ to list items and attributes they have and put them into your .json.
|
|
Then you have to add item/achievement to you inventory. To do so, go to %appdata%\Goldberg SteamEmu Saves\inventory\<appid> on windows or [$XDG_DATA_HOME|~/.local/share]/Goldberg SteamEmu Saves on linux.
|
|
In that folder, create a file items.json and/or achievements.json and fill it like in the example inventory.EXAMPLE.
|
|
items.json syntax is like so: { "item_id": <quantity>, "other_item_id": <quantity> }.
|
|
achievements.json syntax is like so: { "achievement_name": { "earned" : [true|false], "earned_time": <seconds since 1 january 1970> }, "second_name": { "earned" : [true|false], "earned_time": <seconds since 1 january 1970> } }
|
|
"earned_time" can be 0, meaning the achievement was earned before before trace the earn time. (See https://partner.steamgames.com/doc/api/ISteamUserStats#GetAchievementAndUnlockTime)
|
|
Keep in mind that some item are not valid to have in your inventory. For example, in PayDay2 all items below item_id 50000 will make your game crash.
|
|
|
|
Leaderboards:
|
|
By default the emulator assumes all leaderboards queried by the game (FindLeaderboard()) exist and creates them with the most common options (sort method descending, display type numeric)
|
|
In some games this default behavior doesn't work and so you may need to tweak which leaderboards the game sees.
|
|
To do that, you can put a leaderboards.txt file in the steam_settings folder.
|
|
An empty leaderboards.txt makes the emu behave as if any leaderboard queried by the game using FindLeaderboard does not exist.
|
|
The format is: LEADERBOARD_NAME=sort method=display type
|
|
For the sort methods: 0 = none, 1 = ascending, 2 = descending
|
|
For the display type: 0 = none, 1 = numeric, 2 = time seconds, 3 = milliseconds
|
|
An example can be found in steam_settings.EXAMPLE
|
|
|
|
Support for CPY steam_api(64).dll cracks: See the build in the experimental folder.
|
|
|
|
|
|
Notes:
|
|
You must all be on the same LAN for it to work. This is an early work so a lot of games will likely not work.
|
|
|
|
IMPORTANT:
|
|
Do not run more than one steam game with the same appid at the same time on the same computer with my emu or there might be network issues (dedicated servers should be fine though).
|
|
|
|
|
|
|
|
|
|
List of valid steam languages:
|
|
arabic
|
|
bulgarian
|
|
schinese
|
|
tchinese
|
|
czech
|
|
danish
|
|
dutch
|
|
english
|
|
finnish
|
|
french
|
|
german
|
|
greek
|
|
hungarian
|
|
italian
|
|
japanese
|
|
koreana
|
|
norwegian
|
|
polish
|
|
portuguese
|
|
brazilian
|
|
romanian
|
|
russian
|
|
spanish
|
|
swedish
|
|
thai
|
|
turkish
|
|
ukrainian
|