Jump to content

Stuck creating a RasterPropMonitor


Recommended Posts

How do you create/setup a RasterPropMonitor? I followed the manual, but when I got it in game it gave me a "INITIALZATION ERROR, CHECK CONFIGURATION" message.

So I'm doing something(s) wrong, but I have no clue on what it is.

Here's how I created the monitor:

- Created the following meshes

-MapMonitor

-MapMonitorScreen a plane where the screen will be displayed on, uses the whole UV map space

-button_LEFT

-button_LEFT.001

-button_RIGHT

-button_RIGHT.001

-Imported the model in Unity

-Set all the meshes to the IVA layer

-Gave the button_LEFT.001 en button_RIGHT.001 a mesh collider

-Exported as mu and mbm

- Then I copied the following code into the MapMonitor.cfg, from hyomoto's mod, to test if it worked:

PROP
{
name = MapMonitor

MODULE
{
name = RasterPropMonitor
screenTransform = MapMonitorScreen
fontTransform = Hyomoto/MFD/images/MFDFont
textureLayerID = _Emissive // Name of texture layer to work with on the screen surface.
screenWidth = 40 // Screen width in letters.
screenHeight = 20 // Screen height in lines.
screenPixelWidth = 640 // Width of the generated screen texture in pixels.
screenPixelHeight = 640 // Height of the generated screen texture in pixels.
fontLetterWidth = 16 // Width of a font character.
fontLetterHeight = 32 // Height of a font character.
cameraAspect = 1.0
fontDefinition = JSI/RasterPropMonitor/Example/ExampleMFD/fontDefinition.txt
needsElectricCharge = true // Blanks out with power

extraFont = JSI/RasterPropMonitor/Example/ExampleMFD/extraFont1

refreshDrawRate = 2
refreshTextRate = 10
refreshDataRate = 20

buttonClickSound = Hyomoto/MFD/beep
buttonClickVolume = 0.6
globalButtons = button_LEFT,button_RIGHT
}

PAGE
{
name = pluginScanSAT
text = Hyomoto/MFD/pages/overlaySat.txt
textureOverlayURL = Hyomoto/MFD/images/genericOverlay
BACKGROUNDHANDLER
{
name = JSISCANsatRPM
method = MapRenderer
buttonClickMethod = ButtonProcessor
pageActiveMethod = PageActive
buttonUp = 0
buttonDown = 1
buttonEnter = 2
buttonEsc = 7
buttonHome = 6
zoomModifier = 2.0
iconPixelSize = 16
iconShadowShift = 2
scaleBarPosition = 16,144
scaleBar = JSI/RasterPropMonitor/Example/ExampleMFD/GPS/scalebar
scaleLabels = JSI/RasterPropMonitor/Example/ExampleMFD/GPS/scaleLabels
}
textureURL = Hyomoto/MFD/images/nosignal
textureOverlayURL = Hyomoto/MFD/images/basicOverlay

}


}

Link to comment
Share on other sites

How do you create/setup a RasterPropMonitor? I followed the manual, but when I got it in game it gave me a "INITIALZATION ERROR, CHECK CONFIGURATION" message.

So I'm doing something(s) wrong, but I have no clue on what it is.

Sorry I missed this. Mihara's been quiet lately, and I'm trying to cover support when I can. I replied on the RPM thread, but I think the gist of it is that the targeted transform (MapMonitorScreen, per your config) needs to have a renderer and material defined for it (I don't know how those translate into the model - that's the terminology on the plugin side). It is also looking for the _Emissive layer in that material - it replaces the texture defined there with the render texture that RPM uses.

If that's not enough info, you may also try pinging alexustas, since he's made RPM props. About the only further thing I can do is to doctor up the RPM code with debug statements, and look at what's happening when the prop loads (provided you're willing to let me use a copy of the prop/cfg for testing purposes). Or, if you want to build RPM locally yourself, I can point you at the section of the initialization code where I am guessing the problem originates.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...