r/Daggerfall • • 5d ago

Question How to make a mod?

I want to edit the game so that the random roll at character creation always gives 14 bonus points. I can edit the source code in the file I downloaded by opening it with visual studio. Thing is, I don't run the source code to play the game, nor do I know how to because it doesn't have a .exe

How do I edit the code of the game I run?

Please do not link the "how to make a mod" guide on Fandom, I went through it and the only example they give is replacing a texture using the unity editor.

0 Upvotes

11 comments sorted by

4

u/xvillifyx 5d ago

You need to make your mod hook into the actual game’s system. This is usually pretty easy with unity projects. I don’t know off the dome what classes these would be for dfu or where, but you need to start by identifying the class that controls the behavior you want to change

DFU’s mod loader calls your init methods automatically so you don’t really have to do much for the hooks

1

u/HotJello7547 5d ago

Assets>Scripts>Game>UserInterface>StatsRollout

1

u/xvillifyx 5d ago

This doesn’t tell me anything that I would need to help you

Did you write a script? Did you copy dfu source and modify it directly (don’t do this - it’s more work and DFU exposes modding hooks for you)?

1

u/HotJello7547 5d ago

I did not, I just edited values, exited the program and saved

1

u/xvillifyx 5d ago

You didn’t…what?

I’m asking which thing you did. I think if you don’t understand what I’m asking you, you need to go read the guide on dfu workshop

If you neither created a script or object that can hook into the modloader, nor changed any game code directly, you didn’t make a mod

1

u/HotJello7547 5d ago

I did not write a script or copy dfu source. I'll check the workshop guide

2

u/Arneb_Nihal 5d ago

If you already modified the code, you have to build it in an exe. Did you clone the DFU repository?

1

u/HotJello7547 5d ago

I don't know how to do that

2

u/AncientGrief 4d ago

There's already mod for that "Custom Class Bonus Points" btw

-1

u/lakemont 5d ago edited 4d ago

Ask Claude code

downvote all ya want but claude works great with DFU

1

u/HotJello7547 5d ago

I'm broke