fs25-modding-debug
Use when debugging FS25 mods, reading log.txt errors, troubleshooting crashes, fixing common mod issues, or using console commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when debugging FS25 mods, reading log.txt errors, troubleshooting crashes, fixing common mod issues, or using console commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working with I3D files, understanding the I3D scene graph, node types, materials, shapes, user attributes, collision flags, or transform hierarchy.
Use when creating or modifying FS25 map mods, configuring map.xml, terrain, placeables, farmlands, ground types, or fruit types.
Use when working with FS25 textures, DDS formats, normal maps, specular maps, texture naming conventions, or resolution guidelines.
Use when creating or modifying FS25 vehicle mods, configuring vehicle XML, specializations, attacherJoints, wheels, movingTools, movingParts, lights, or sounds.
Use when working with fs-utils CLI tools — decompiling Luau/LuaJIT bytecode, extracting GAR/DLC archives, unlocking shapes files, or formatting XML.
Use when setting up a new FS25 mod for development, creating symlinks to the mods folder, packaging a mod as zip, or configuring modDesc.xml fields like author and descVersion.
| name | fs25-modding-debug |
| description | Use when debugging FS25 mods, reading log.txt errors, troubleshooting crashes, fixing common mod issues, or using console commands. |
Systematic approach to debugging FS25 mods — reading logs, common errors, console commands, and troubleshooting techniques.
| Platform | Path |
|---|---|
| Windows | %USERPROFILE%\Documents\My Games\FarmingSimulator2025\log.txt |
| macOS | ~/Library/Application Support/FarmingSimulator2025/log.txt |
The log is overwritten each game launch. Save it before restarting if you need to preserve it.
| Prefix | Meaning |
|---|---|
Error: | Critical — mod won't work correctly |
Warning: | Non-fatal — may cause issues |
LUA call stack: | Lua error with traceback |
data/ or mod path | Context for where the error occurred |
Missing node / nil index:
Error: Can't find node 'wheelRepr' in '...'
Fix: Check i3dMappings or node path. Node was renamed or removed from I3D.
Lua nil error:
Error: attempt to index a nil value
LUA call stack: ...mySpecialization.lua:42
Fix: A variable is nil — check if prerequisite specialization is loaded, or if spec_ table was initialized.
Missing file:
Error: Can't load resource '...textures/diffuse.dds'
Fix: File doesn't exist at that path. Check case sensitivity (Linux/macOS).
XML parse error:
Error: XML parse error in '...modDesc.xml' at line 15
Fix: Invalid XML — unclosed tag, wrong encoding, or special characters in attributes.
descVersion mismatch:
Warning: ModDesc version ... is not supported
Fix: Update descVersion in modDesc.xml to current version.
Specialization error:
Error: Unable to add specialization 'mySpec' ... prerequisites not met
Fix: prerequisitesPresent() returned false. Check required specializations.
Open console with ~ (tilde) key in-game.
| Command | Purpose |
|---|---|
gsToggleStats | Performance overlay (FPS, draw calls) |
gsVehicleDebug | Vehicle debug rendering |
gsFillUnitDebug | Fill unit debug info |
gsAIDebug | AI worker debug visualization |
gsPhysicsDebug | Physics collision shapes |
gsRenderCollisions | Show collision meshes |
csReloadMods | Reload script-only mods without restart |
gsFieldDebug | Field ownership/state overlay |
Launch with -cheats flag for extra commands:
descVersion, valid <specializations> and <vehicleTypes>| Symptom | Likely Cause | Fix |
|---|---|---|
| Low FPS near mod | Too many draw calls | Merge meshes, reduce materials |
| Stutter on load | Large textures | Reduce resolution, add mipmaps |
| Physics lag | Too many collision shapes | Simplify collision meshes |
| Memory spike | Uncompressed textures | Use DDS compression |
readStream/writeStreamdirtyFlag system controls what gets synced each tick