Code Monkey home page Code Monkey logo

vrgin.template's Introduction

VRGIN.Template

Generic template project that illustrates how to use VRGIN.

Using the source code

Building

  1. Checkout the project (recursively, because VRGIN is included as a submodule)
    git clone --recursive https://github.com/Eusth/VRGIN.Template.git
    cd VRGIN.Template
  2. (Optional) Launch Bootstrapper.exe and set your project name. This will automatically rename the project file to your liking.
  3. Open the solution (*.sln) file
  4. (Optional) Open Deploy.props and set <GameDirectory> to the directory where your game resides. This will automatically deploy your mod when you build
  5. Start the build in the Release configuration

This will generate all you need inside bin\Release. (This should be the same output as on the releases page). If you've set the game directory, your game will also have been updated.

Running

  1. Patch your game by dragging its executable on IPA.exe (only has to be done once)
  2. By default, the game will now boot into VR mode when SteamVR is running (make sure Desktop Game Theatre is disabled)

Using the release

Installation

  1. Download release from the release page
  2. Extract contents into a Unity folder
  3. Drag the game executable onto IPA.exe

Running

Start the game while SteamVR is running or use the --vr flag.

vrgin.template's People

Contributors

eusth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vrgin.template's Issues

Super Lucky's Tale

Gave it a shot with this game but doesn't seem to work correctly. See screen-shot for what it displayed.
20190120174922_1
vr.log

Update the VRGIN Template with the new IPA

Could we possibly get a template update with the new IPA that references UnityEngine.CoreModule.dll as opposed to UnityEngine.dll?

This template's IPA only references UnityEngine.dll and I cannot for the life of me figure out how to get the new IPA and VRGIN source codes to work together into something like the template.

black screen

I see a black screen and I see the mouse pointer in VR but no menu and the game (Dear Esther) doesn't start

there is bug with firewatch and 7daystodie

THX for this nice tool, some old unity game now can have vr supported!

after try my game on steam, there is some bugs:
firewatch: in game sence are good , but dialog and menu cant show.
7daystodie: just cant show.

Help with Sega Mega Drive & Genesis Classics?

Tried compiling it myself a while back specifically for this game, never could get it to work. Gave it a try today with the newest version, still no luck. No clue what to change, no matter what I do it just goes to the grey loading room in VR.

The camera is tracking, you can tell by changing MirrorScreen to True in the VRSettings.xml file. In the log file it says the Main Camera went offline, maybe that's related?

Full log file here:
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: Unlit (88)
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: UnlitTransparent (88)
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: UnlitTransparentCombined (88)
[20:14:41][INFO][VRManager#OnAwake] ------------------------------------
[20:14:41][INFO][VRManager#OnAwake] Booting VR [lighthouse]
[20:14:41][INFO][VRManager#OnAwake] ------------------------------------
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: Custom/SteamVR_HiddenArea (88)
[20:14:41][INFO][VRGUI#get_Instance] Cursor is simulated
[20:14:41][INFO][VRCamera#OnAwake] Creating VR Camera
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: Custom/SteamVR_BlitFlip (88)
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: Custom/SteamVR_Overlay (88)
[20:14:41][INFO][UnityHelper#LoadFromAssetBundle] Loading: Custom/SteamVR_Blit (88)
[20:14:41][INFO][ControlMode#OnEnable] Enabled GenericSeatedMode
[20:14:42][INFO][GameInterpreter#OnLevel] Loaded level 0
[20:14:42][INFO][SeatedMode#Recenter] Recenter
[20:14:42][INFO][GUIQuad#OnEnable] Start listening to GUI (GUI Monitor)
[20:14:42][INFO][UnityHelper#LoadFromAssetBundle] Loading: Fade material (88)
[20:14:42][INFO][UnityHelper#LoadFromAssetBundle] Loading: ConvertPanoramaShader (88)
[20:14:42][INFO][UnityHelper#LoadFromAssetBundle] Loading: ConvertPanoramaStereoShader (88)
[20:14:42][INFO][UnityHelper#LoadFromAssetBundle] Loading: TextureToBufferShader (88)
[20:14:42][INFO][CapturePanorama#Log] Settings changed, calling Reinitialize()
[20:14:42][INFO][CapturePanorama#OnStart] Started panorama
[20:14:42][INFO][GUIMonitor#OnStart] Plane was added...
[20:14:42][INFO][GUIQuad#UpdateGUI] Updating GUI GUI Monitor with 2 textures
[20:14:42][INFO][GUIMonitor#Rebuild] Build monitor
[20:14:42][INFO][VRManager#OnUpdate] Detected new camera Main Camera Action: MainCamera
[20:14:42][INFO][VRCamera#Copy] Copying camera: Main Camera
[20:14:42][INFO][VRCamera#RegisterSlave] Camera went online: Main Camera
[20:14:42][INFO][VRCamera#UpdateCameraConfig] The camera sees Default, TransparentFX, Water (Main Camera)
[20:14:42][INFO][VRManager#OnUpdate] Detected new camera VRGIN_Camera (head) Action: Ignore
[20:14:42][INFO][VRManager#OnUpdate] Detected new camera VRGIN_GUICamera Action: Ignore
[20:14:42][INFO][VRGUI#CatchCanvas] Add HUD [Layer: UI, SortingLayer: Default, SortingOrder: 1, RenderMode: ScreenSpaceOverlay, Camera: Main Camera (UnityEngine.Camera), Position: (951.1, 539.9, -0.9) ]
[20:14:42][INFO][ControlMode#OnDeviceConnected] Device connected: 0
[20:14:42][INFO][ControlMode#OnDeviceConnected] Device connected: 1
[20:14:42][INFO][ControlMode#OnDeviceConnected] Device connected: 2
[20:15:13][INFO][ControlMode#OnDisable] Disabled GenericSeatedMode
[20:15:13][INFO][GUIQuad#OnDisable] Stop listening to GUI (GUI Monitor)
[20:15:13][INFO][VRCamera#OnAwake] Creating VR Camera
[20:15:13][INFO][VRCamera#UnregisterSlave] Camera went offline: Main Camera
[20:15:13][INFO][VRCamera#UpdateCameraConfig] The camera sees Default ()

Here's hoping we can get it working, love the environment in the game.

Not working for Unity 2018.2.18 build

I'm guessing this is related to issue #7?

Getting the following error:

Patching UnityEngine.dll... ERROR: Oops! This should not have happened.

System.Exception: Could not find any entry type!
   at IPA.Patcher.PatchedModule.Patch()
   at IPA.Program.Install(PatchContext context)

What's the known working Unity version?

Ghost of a Tale updated Unity two days ago...

And now you're wonderful mod isn't working anymore. I get an oops, that's not supposed to happen and the patch and launch isn't created after dragging the ex onto the ipa. Cheers!

Issue with Containment Breach

Updating files...
Architecture: x64
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\IllusionInjector.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\IllusionPlugin.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\IllusionPlugin.xml
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\System.Configuration.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\System.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\System.Drawing.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\System.Xml.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Managed\System.Xml.Linq.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Plugins\x86\LeapC.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Plugins\x86\openvr_api.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Plugins\x86_64\LeapC.dll
Copying C:\Users\Gebruiker\Desktop\SCP\CBv0.5\Containment Breach_Data\Plugins\x86_64\openvr_api.dll
Successfully updated files!
Patching UnityEngine.dll... ERROR: Oops! This should not have happened.

System.Exception: Could not find any entry type!
bij IPA.Patcher.PatchedModule.Patch()
bij IPA.Program.Install(PatchContext context)

[Press any key to quit]

I get this error. Containment breach can be found at https://www.scp-unity.com/

Layers of fear

Hi Eusth,

I cannot get LOF to work, any suggestions?

Thank you in advance

Plugin not starting up

When launching the patched game, VR mode doesn't start and I get this error message when using --verbose :
image

My Summer Car

I though this could be a perfect VR game, but VRGIN does nothing for it.
Launching game with --verbose parameter I get this:

mysummercar
Running on Unity 5.0.0f4
-----------------------------
Loading plugins from D:\SteamLibrary\steamapps\common\My Summer Car\Plugins and found 1
-----------------------------
 My Kick-Ass VR Plugin: 1.0
-----------------------------
[15:50:23][ERROR][UnityHelper#LoadFromAssetBundle] Looks like the asset bundle failed to load?
[15:50:23][INFO][UnityHelper#LoadFromAssetBundle] Loading: Unlit (CF)
[15:50:23][ERROR][UnityHelper#LoadFromAssetBundle] System.NullReferenceException: Object reference not set to an instance of an object
  at VRGIN.Helpers.UnityHelper.LoadFromAssetBundle[Shader] (System.Byte[] assetBundleBytes, System.String name) [0x00000] in <filename unknown>:0
My Kick-Ass VR Plugin: System.NullReferenceException:
  at (wrapper managed-to-native) UnityEngine.Material:Internal_CreateWithShader (UnityEngine.Material,UnityEngine.Shader)
  at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00000] in <filename unknown>:0
  at VRGIN.Visuals.DefaultMaterialPalette.CreateUnlit () [0x00000] in <filename unknown>:0
  at VRGIN.Visuals.DefaultMaterialPalette..ctor () [0x00000] in <filename unknown>:0
  at VRGIN.Template.ConfigurableContext..ctor () [0x00000] in <filename unknown>:0
  at VRGIN.Template.VRPlugin.CreateContext (System.String path) [0x00000] in <filename unknown>:0
  at VRGIN.Template.VRPlugin.OnApplicationStart () [0x00000] in <filename unknown>:0
  at IllusionInjector.CompositePlugin+<>c.<OnApplicationStart>b__3_0 (IPlugin plugin) [0x00000] in <filename unknown>:0
  at IllusionInjector.CompositePlugin.Invoke (IllusionInjector.CompositeCall callback) [0x00000] in <filename unknown>:0

mysummercar.exe version is 5.0.0.39095, which, I guess is version of the Unity engine used.

Any help, where to start hacking it in?

Steam compatibility?

Hey, I've just stumbled upon this thanks to a post on /r/Vive and I think the potential for this is astounding. However, I'm having trouble getting it to work with games on Steam. I've tried Furi, Turbo Dismount and Clustertruck (first couple of Unity games that came to my head) and none work. When I attempt to launch the game, it opens the game's page in SteamVR, which usually happens when you attempt to play a pirated version of a game from Steam. Instead of launching the game, it brings you to it's store page so you can buy it. I think the way this modification launches the game tries to bypass Steam and even though I own the game and have it installed, it still opens the game's store page. Is this a problem on my end or is Steam compatibility not incorporated yet? Thanks.

Use IK FK in Honey Select Neo Studio

thank you for your amazing job
I'm sorry to bother you, but there is a problem I can not solve
when i use this plugin to play honey select neo studio via vive, i can't handle ik or fk(I tried in stand mode and seat mode).I have used playclub plugin and I can operate them by the vive handle
so is there anything wrong

brightness adjustment

Hallo, thanks to you I can finally enjoy Dear Esther with my Oculus CV1, but the blacks are washed out and brightness adjustment in game doesn't work, is there any way to make it work or adjust it via an external config file or in any other way?

thanks

Pablo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.