11 votes
Accepted

How to encourage players to not lessen their own gaming experience with mods and cheats?

A very common method is to disable achievements when gameplay-affecting mods are enabled or cheats are used. Players want those achievements. But when they are using overpowered mods or cheats, they ...
Philipp's user avatar
  • 119k
6 votes

Balance an RTS to make a unit twice as good

Any unit against a certain type of unit with a particular DPS will have a specific TTK, or Time To Kill. You should balance your unit around that TTK, which is calculated as ...
HorriblePerson's user avatar
6 votes
Accepted

How is it possible to mod a game whose source code isn't publicly available?

This question/answer is designed to be a community effort. Feel free to improve some aspects of it. How a game can be modded when the source code is not available is a really broad topic. It will ...
5 votes

How to make Unity game moddable with scripting in a friendly way?

A somewhat blunt approach would be to let modders write C# code and then have your game read & compile those scripts, using them as though they were code the game was built with. This has some ...
DMGregory's user avatar
  • 134k
5 votes

Remove or skip splash screen from Unity Free/Personal game binary for modding

A morally and legally sound way that can be openly discussed on a public forum like this one is to contact the original developer. If you meet with such circumstances, chances are the game is one of ...
Peter's user avatar
  • 9,925
4 votes
Accepted

C++ - Lua Preventing malicious lua code

could block certain functions, but that wouldn't be nice for the modders It's perfectly nice for modders and is basically what everyone does. The only ones you need to restrict are the IO functions, ...
Sean Middleditch's user avatar
4 votes
Accepted

How to make a game people can mod?

There are 2 primary approaches to this: Make your game open source. People have access to the source of the game and can make changes to the code. Design a modular game. For the modules you want to ...
Peter's user avatar
  • 9,925
4 votes
Accepted

How do I prevent modders from creating malicious code?

You cannot prevent it (in situations which are equivalent to running arbitrary native code supplied by others). You can: curate the mods screen submissions with a scanner restrict your API as much ...
Pikalek's user avatar
  • 12.4k
4 votes
Accepted

Remove or skip splash screen from Unity Free/Personal game binary for modding

It is possible to skip the Unity splash screen without manipulating any of the game files using a tool that accelerates the execution of a process. Cheat Engine (be weary of bloatware during download ...
Iwan Plays's user avatar
4 votes
Accepted

How do I let people make Steam Workshop mods for my game?

The first thing you need to do is familiarize yourself with the Steamworks documentation. Searching for "workshop" from the documentation homepage will bring up the references for the Steam Workshop ...
Pikalek's user avatar
  • 12.4k
4 votes

How to identify performance issues with large numbers of mods?

The issue is often death of the thousand cuts, each mod has some overhead that you cannot get around from the mod-dev's side. This is not helped by the unofficial [redacted] contest of how many mods ...
ratchet freak's user avatar
4 votes

Can I bring features of an Android game into another Android game?

Is it possible to replicate ... These are two different software. Software like these can change a lot from version to version. So you can't assume that you'll be able to "copy-paste" code ...
Vaillancourt's user avatar
  • 16.3k
3 votes

Balance an RTS to make a unit twice as good

I am modifying an RTS game (Rise of Nations) and want to make a unit twice as good and expensive as it's previous version so the balance is unaffected. Without context, this goal is meaningless. In ...
congusbongus's user avatar
  • 14.8k
3 votes
Accepted

Is it possible to not pack asset files into archives when building a Unity game?

This process Unity uses is called "data baking" and it accomplishes a lot of useful things for your game: It converts the textures into appropriate sizes for your build target (scaling huge or non-...
DMGregory's user avatar
  • 134k
3 votes

Debug logging in Factorio mod

According to this forum post You can launch the game from console, so standard print function would send its output there. You can redirect that output to files. There is serpent pretty printer, ...
BlueRaja - Danny Pflughoeft's user avatar
3 votes

Where is the GUI button press sound file for Minecraft?

Learning to better help yourself is a wonderful thing, it helps you the most! With most things programming, doing a simple Google search first is typically the best route. Then there's the option of ...
House's user avatar
  • 73.2k
3 votes

How can I create and load models with additional information?

This is not going to be as easy as you think it would be, because only the Unity Editor can load Blender files. When you import a Blender file, it is converted to Unity's internal format. This is the ...
Philipp's user avatar
  • 119k
3 votes

Why aren't game mods allowed to talk to the outside?

Apart from cheating: Security issues! Most of the times, mods are installed without thorough review regarding trustworthiness of the creator (who can be anyone, as opposed to a studio), so it would ...
Hobbamok's user avatar
  • 172
3 votes
Accepted

How to create a new civilization mod for Age of Empires 1 Definitive Edition?

I do not have this game, cannot test if it works correctly. I suggest the open source tool Advanced Genie Editor 2019. (github repository). On the linked website it says: Advanced Genie Editor ...
Theraot's user avatar
  • 26.6k
3 votes

How to create game database editor interface like Age of Empires' AGE

All the tool does, I'm pretty sure, is unpack some data files (XML serialization is easy to set up), present it to you in a readable format, and pack the files back up again when you hit the save ...
Foxwarrior's user avatar
2 votes

How can I carry around an inventory in my inventory?

Let's go through this step by step. Before you can do anything else, you need to prevent the game from filling a normal empty soul gem which the player might be carrying in open inventory. The most ...
Kevin's user avatar
  • 261
2 votes

How can I check if player is an operator in Forge?

Using EntityPlayerMP#canCommandSenderUseCommand(int permLevel, String commandName) might be a way to find out if a player is an operator.
scope's user avatar
  • 69
2 votes

Where is the GUI button press sound file for Minecraft?

Copying my answer from Arqade. How to find a sound file Open \.minecraft\assets\indexes\<version>.json. <version> ...
Q20's user avatar
  • 121
2 votes
Accepted

Minecraft Forge 1.8 Custom Recipe Manager, need help

I hope this function gives you a raw idea on how it might work: ...
ByteBiter's user avatar
2 votes

How to make Unity game moddable with scripting in a friendly way?

You could do it like Kerbal Space Program does it: Allow your game to load AssetBundles at runtime by having it read config files which tell it where and in what way the assets in the bundle are ...
Philipp's user avatar
  • 119k
2 votes

UNIT_SPELLCAST_START event, spell names, localization issues?

The answer is yes, this will be a problem. I found files from many addons that contains localized spell names, here's one such example - https://github.com/laytya/Libs2/blob/master/Babble/Babble-...
Lasse V. Karlsen's user avatar
2 votes
Accepted

Potion effect never wears out

I haven't actually implemented a Minecraft Mod. This answer is a bit of speculation, based on some old tutorials. Your method onItemRightClick will be called twice. ...
Theraot's user avatar
  • 26.6k
2 votes
Accepted

How can modders decrypt a game's files?

When you want to use encrypted asset files in a game you developed, then the game executable must be able to decrypt those files. That means that somewhere in your game exectuable you must embed both ...
Philipp's user avatar
  • 119k

Only top scored, non community-wiki answers of a minimum length are eligible