Skip to content

Unable to compile #26

@DubiDee

Description

@DubiDee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions