VisualPinball / VisualPinball.Engine.PinMAME

PinMAME support for VPE
MIT License
2 stars 1 forks source link

PlayfieldComponent' does not contain a definition for 'GlobalScale' #30

Closed shntat closed 1 year ago

shntat commented 1 year ago

Library\PackageCache\org.visualpinball.engine.pinmame@0.0.1-preview.36\Editor\PinMameGamelogicEngineInspector.cs(249,55): error CS0117: 'PlayfieldComponent' does not contain a definition for 'GlobalScale'

Library\PackageCache\org.visualpinball.engine.pinmame@0.0.1-preview.36\Editor\PinMameGamelogicEngineInspector.cs(250,48): error CS0117: 'PlayfieldComponent' does not contain a definition for 'GlobalScale'

Cannot upgrade the Visual Pinball Engine (HDRP) past 166

Does this require an upgrade of unity from 2021.3.0f1 to a newer version?

166

167

shntat commented 1 year ago

Visual Pinball Engine Version 0.0.1-preview.122 - December 23, 2022 and above Is causing the issue with pinmame

freezy commented 1 year ago

Oops, yeah, probably because I forgot to merge the PinMAME branch. Can you update and try again?

shntat commented 1 year ago

same error after update.

Library\PackageCache\org.visualpinball.engine.pinmame@0.0.1-preview.37\Editor\PinMameGamelogicEngineInspector.cs(249,55): error CS0117: 'PlayfieldComponent' does not contain a definition for 'GlobalScale'

shntat commented 1 year ago

The problem is in the playfieldcomponent.cs after line 36 GlobalScale seems to be commented out. I uncommented line 37 and 38 both in my project and C:\Users\Shaun\AppData\Local\Unity\cache\packages\registry.visualpinball.org\org.visualpinball.engine.unity@0.0.1-preview.123\VisualPinball.Unity\VisualPinball.Unity\VPT\Playfield\PlayfieldComponent.cs I hope this was the fix.

166playfield component

shntat commented 1 year ago

that made the error go away but breaks how the flippers rotate.

shntat commented 1 year ago

Any other ideas?

freezy commented 1 year ago

Update to the latest PinMAME package (v0.0.1-preview.38), it should be fine now. Sorry for the hiccup.

shntat commented 1 year ago

Every Thing works now. I had to start a new project some how something changed that broke the physics.