Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile #26

Open
DubiDee opened this issue Aug 14, 2023 · 0 comments
Open

Unable to compile #26

DubiDee opened this issue Aug 14, 2023 · 0 comments

Comments

@DubiDee
Copy link

DubiDee commented Aug 14, 2023

I tried compiling this in VS and errored.

In Patches/RoadEditor/RoadEditorMainPanel_Patch.cs, an argument is missing to InstantiatePrefab

Fix which worked for me:

if(elevationInfo != null) {
                    elevationInfo = AssetEditorRoadUtils.InstantiatePrefab(elevationInfo, true);
                }

In Data/NetworkExtensions/PropRenderData.cs, an argument is missing for RenderInstance

A boolean should be added at the end.

Fix:

global::TreeInstance.RenderInstance(cameraInfo, variation, currentData.Position, scale, brightness, RenderManager.DefaultColorLocation, true);

I have managed to build RoadBuilder mod using the mod compiled after these changes and it works in game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant