- Apr 14, 2018
- 71
- 41
How can I force a custom character to appear? I made one, but she's not showing up.
dialogs depend of the places, right?
Let's try this step by step.
1) Open the game.
2) Access the official MOD TOOLS
3) Read what is written on the "Intro" tab
4) download the template.gd from the link indicated on the "Intro" tab
5) copy the template file and call it test.gd (do not edit it yet!)
6) create a character and save it as test.pechar (leave the spawn location of stage 0 at the bar for your first test)
7) place both files in the folder \mods\characters
8) Test if the character shows up in the game world at the bar (default location).Example location for Windows 10:
C:\Users\YOURNAME\AppData\Roaming\Godot\app_userdata\Porn Empire\mods\characters
9) Start creating custom conversations by editing the provided template.gd with Notepad++ or directly inside the free Godot software.
10) For each conversation step in the .gd file define a corresponding spawn location for that stage in the .pechar file
How do you know where the character spawns?
The conversation step 0 in the test.gd file corresponds to the Spawn location stage 0 in the test.pechar
By default if you do not set a different spawn location all custom characters appear in the bar because this was set as default location in the .pechar
The conversation step 1 in the test.gd file corresponds to the Spawn location stage 1 in the test.pechar.
This means if you want you can set a different spawn location for step 1 of the conversation.
In the test.pechar file you can set up to 10 stages that correspond to 10 possible conversation steps.
So if you want you can make the character spawn at a different location whenever a step of the conversation is over.Conversation step 0 - 9
takes place at
Spawn Location Stage 0-9
-> The Spawn location is set in the .pechar
-> The dialogue that happens is set in the .gd
To test this it may help to start with something simple.
Example:
Conversation step 0 in test.gd takes place at the "Bar" in stage 0 set in test.pechar Spawn Location
Conversation step 1 in test.gd takes place at the "Beach" in stage 1 set in the test.pechar Spawn Location
Conversation step 2 in the test.gd takes place at the "Gym" in stage 2 set in the test.pechar Spawn Location
Why does my custom character still not show up in the world?
Make sure you used the same name for the .gd and .pechar file
Additional Notes:Proper examples:
test.gd
test.pechar
test_v1001.gd
test_v1001.pechar
eva.gd
eva.pechar
The following will not work because of typos:
testv1001.gd
test_v1001.pechar
eva.gd
ewa.pechar
1) I found it helpful to have both the .gd and the .pechar file open at the same time.
Whenever I finished one step of the conversation in the .gd file I would make sure to update the spawn location in the .pechar file.
2) Start with a very basic conversation first and test if that works.
3) If the game crashes check the error log at AppData\Roaming\Godot\app_userdata\Porn Empire\logs
or
Write the code directly inside of Godot to get real time feedback about syntax errors.
Last edited: