Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement createobjects and createplants property in engineSetSurfaceProperties #2681

Open
Labels
enhancementNew feature or request
@lopezloo

Description

Is your feature request related to a problem? Please describe.

engineSetSurfaceProperties function lack createobjects and createplants property.

Describe the solution you'd like

These properties were deliberately disabled because were producing crashes. Maybe it could be fixed.

Describe alternatives you've considered

No response

Additional context

// crash when enabling on surfaces without setting plants and trees
// table at offset 0xC38070 contain information about which are read from plants.dat
// i don't know did this will work on objects created by createObject function
// ADD_ENUM(SURFACE_PROPERTY_CREATEOBJECTS, "createobjects")
// ADD_ENUM(SURFACE_PROPERTY_CREATEPLANTS, "createplants")
case SURFACE_PROPERTY_CREATEOBJECTS:
argStream.ReadBool(bEnabled);
if (!argStream.HasErrors())
{
pSurface->setFlagEnabled(1, 7, bEnabled);
lua_pushboolean(luaVM, true);
return 1;
}
break;
case SURFACE_PROPERTY_CREATEPLANTS:
argStream.ReadBool(bEnabled);
if (!argStream.HasErrors())
{
pSurface->setFlagEnabled(1, 8, bEnabled);
lua_pushboolean(luaVM, true);
return 1;
}
break;
#702

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /