EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
VR Modding
Post new topic Reply to topic Goto page 1, 2  Next
View previous topic :: View next topic
Author Message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Sat, 4. Aug 18, 06:47    Post subject: VR Modding Reply with quote Print

I would like to try my hand at modding the VR version, I am downloading from oculus as I type here.

I downloaded the extensions zip that was available, but I would like to create my own mods. I did this with X3AP after getting the required tools.

I see there is a toolset for the vanilla rebirth, but I do not see one for VR, and I do not own the vanilla so those tools are restricted.

Please, how do I get the tools I need for modding VR version?

Thanks

Archaine

Back to top
View user's profile Send private message
ubuntufreakdragon



MEDALMEDALMEDAL

Joined: 23 Jun 2011
Posts: 3921 on topic
Location: Das Randland des Wahnsinns!
Thank you for registering your game
PostPosted: Sat, 4. Aug 18, 11:06    Post subject: Re: VR Modding Reply with quote Print

Archaine in DevChat wrote:
I press the new topic button in the forum and it just jumps back to the main forum page??

Delete your recently cached pages.
Oh and the chat normally takes 4hrs for an answer.


You may want to ask your question here too:
https://forum.egosoft.com/viewtopic.php?t=357464


_________________
My X3 Mods

XRebirth, things left to patch:
In General; On Firing NPC's; In De Vries; Out Of Zone; And the Antiwishlist
Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Sun, 5. Aug 18, 05:40    Post subject: Thanks Reply with quote Print

I tried the tool download once more and it worked this time.

Thanks again

Archaine

Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
modified
PostPosted: Sun, 5. Aug 18, 19:48    Post subject: Scripting more than modding Reply with quote Print

I read through the documentation.
I guess I was more interested in scripting modification.

Is this possible in XRebirthVR?

Here is an example of what I mean.
in Alb Prelude I got into the scripting and was able to call them from the command menu through the script editor.


Example of Script to generate orbita defense platform with surrounding laser tower rings and set rules of engagement

$pSector = [PLAYERSHIP] -> get sector
$xCenter = [PLAYERSHIP] -> get x position
$x = $xCenter
$yCenter = [PLAYERSHIP] -> get y position
$y = $yCenter
$zCenter = [PLAYERSHIP] -> get z position
$zCenter = $zCenter + 4000
$z = $zCenter
$Platform = create ship: type=Large Orbital Weapons Platform owner=Player addto=$pSector x=$xCenter y=$yCenter z=$zCenter
= $Platform -> install 3 units of 2 GJ Shield
= $Platform -> install 48 units of Concussion Impulse Generator
= $Platform -> install 1 units of Duplex Scanner
= $Platform -> install 1 units of Triplex Scanner
= $Platform -> install 1 units of Fight Command Software MK1
= $Platform -> install 1 units of Fight Command Software MK2
= $Platform -> install 1 units of Carrier Command Software
= $Platform -> install 1 units of Special Command Software MK1
= $Platform -> install 1 units of Singularity Engine Time Accelerator
= $Platform -> install 250 units of Firestorm Torpedo
= $Platform -> install 250 units of Hammerhead Missile
= $Platform -> install 300 units of Hornet Missile
= $Platform -> install 300 units of Tempest Missile
= $Platform -> install 1000 units of Hurricane Missile
= $Platform -> install 777 units of Mosquito Missile
$TurretCount = $Platform -> get number of turrets
$tCounter = 0
while $tCounter <= $TurretCount
$Platform ->start task $tCounter with script !turret.killenemies.std and prio 0: arg1=$tCounter arg2=null arg3=null arg4=null arg5=null
inc $tCounter =
end
START $Platform -> command COMMAND_KILL_ENEMIES : arg1=null, arg2=null, arg3=null, arg4=null
$Platform ->set fire missile probability to 75
$Platform ->start task 10 with script plugin.missile.def.main and prio 0: arg1=null arg2=null arg3=null arg4=null arg5=null
$Platform ->start task 11 with script ArchOrbitalDefenseBlockSCMiCa2 and prio 0: arg1=null arg2=null arg3=null arg4=null arg5=null
$Platform ->start task 12 with script ArchOrbitalDefenseBlockSCMiFi2 and prio 0: arg1=null arg2=null arg3=null arg4=null arg5=null
$Platform ->start task 13 with script ArchOrbitalDefenseBlockSCMiDe2 and prio 0: arg1=null arg2=null arg3=null arg4=null arg5=null
@ = [THIS] -> call script DevilsHalo16LtowerSmlRngSmlPXZSC :
@ = [THIS] -> call script DevilsHalo16LtowerSmlRngSmlPXYSC :
@ = [THIS] -> call script DevilsHalo16LtowerSmlRngSmlPZYSC :
return null



Last edited by Archaine on Mon, 13. Aug 18, 03:19; edited 1 time in total
Back to top
View user's profile Send private message
ubuntufreakdragon



MEDALMEDALMEDAL

Joined: 23 Jun 2011
Posts: 3921 on topic
Location: Das Randland des Wahnsinns!
Thank you for registering your game
PostPosted: Sun, 5. Aug 18, 19:59    Post subject: Reply with quote Print

the main script language of XR is md look up the folders aiscripts and md. (inside the cats)
btw. many of your scripts especially the last one a rather stupid and you can enclose code in [co.de][/co.de] - the points tags
Code:

$counter = 0
$quantity = 16
$angle.step = 65535 / $quantity
while $counter < $quantity
  $angle = $counter * $angle.step
  $x = fixed sin $angle
  $z = fixed cos $angle
  $x = $xCenter + $radius * $x
  $z = $zCenter + $radius * $z
  inc $counter =
  *create stuff
end
 
eliminates all if clauses and work with quantity which are not a power of 2


_________________
My X3 Mods

XRebirth, things left to patch:
In General; On Firing NPC's; In De Vries; Out Of Zone; And the Antiwishlist
Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Sun, 5. Aug 18, 22:59    Post subject: Reply with quote Print

Thanks for that, thought there was a better way.
I'm not a programmer, well wasn't then, kinda pulled all of that out of my butt at the time.


What is the interface to call scripts while in game? There is no script editor, that I have found.

Got the Cat tool running, totally lost at this point, I assume I write my script and append it to a cat, then again how is it envoked in game?

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13721 on topic

Thank you for registering your game
PostPosted: Mon, 6. Aug 18, 00:07    Post subject: Reply with quote Print

actually you can just create a new folder in the extensions folder (which is your own mod you can select from the ingame menu Wink ) and in there create an MD folder where you just add our own MD files. Far easier than messing with Cats/Dats (and also it is not necesary to change the game cats/dats themselves or add such files to the game root - there is always a way to do it with extensions )

Regarding calling Scripts: in for MD you have to define fitting conditions for it to trigger a cue. for Testing purposes <event_object_cycled_weapons object="player.primaryship"/> is a good start since you can easily trigger it.*
example script to print a message on the screen each time the weapons are cycled:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mdscript name="Example" xsi:noNamespaceSchemaLocation="./md.xsd">
  <cues>
    <cue name="ExampleCue">
      <conditions>
        <event_object_cycled_weapons object="player.primaryship"/>
      <conditions/>
      <actions>
        <show_help custom="'Hello World'"/>
        <reset_cue cue="this"/> <!-- to repeat this cue when done -->
      </actions>
    </cue>
  </cues>
</mdscript>



*there are more events available. best get an autocompleting xml editor (based on xsd files) and put both the md.xsd and common.xsd from the games libraries folder inside your md folder, and use the xsi:noNamespaceSchemaLocation="./md.xsd" to use it in your script (maybe needs reloading the File). Alternatively you can search the aforementoined Files with a Text Editor.


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Mon, 6. Aug 18, 00:23    Post subject: Reply with quote Print

Thanks for the assistance. Just getting up and running, lots to absorb.

About to go through the "How to Create a Custom Gamestart tutorial" to get a feel for the system.

I will try you example as a first step.
Is there a way to create a menu button and use that as the trigger?

Any recommendations for free xml editor?

My eventual goal is to import my own custom ship, I have one in Unreal editor that I can explore in VR mode, but it's a static experience. Thought it would be neat to see it working in a real game environment.

Again thanks.

Archaine

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13721 on topic

Thank you for registering your game
PostPosted: Mon, 6. Aug 18, 00:41    Post subject: Reply with quote Print

Quote:
Is there a way to create a menu button and use that as the trigger?

Technically yes, but UI stuff is very diffrent from MD/AIScript. Also it only supports complete file replacements afaik, so each menu can only be changed by one mod each (there is a Mod available which allows multiple mods to hook into the Sidebar though, but i am not familiar with it)
In short too much to learn for some quick experimenting imo....

Quote:
Any recommendations for free xml editor?
i personally use XmlCopyEdit as Editor and Notepad++ to crawl through Files. Egosoft afaik uses the MS Visual Web Developer.

Code:
My eventual goal is to import my own custom ship, I have one in Unreal editor that I can explore in VR mode, but it's a static experience.

For that purpose the UI and MD Stuff is at best tangential... basically you have to convert the Ship into the Mesh Format for XR (including macro and component files), register aforementoined files in the two index files so the Game finds them, give your new Ship some Build Ressources in the wares.xml and finally make it buildable in a Shipyard Module or spawn it via Jobs files. Most of this involves xml, but none of them involve MD or AIScript... or UI for that matter.. (although MD is still useful for Testing because you can just spawn your Ship on Gamestart with it)

got an older mod of mine here which adds a Kitbashed new Ship to the Game. not an entirely new Mesh, but its a good start i think:
https://www.dropbox.com/s/zgyoywmi6oqy5w6/UTRahanasHybridPlus.7z?dl=0
(Not sure if this is the updated Version or the initial one from 2013 though, but as example to build upon it should still work good enough)
Regarding Importing new Meshes i think its best to ask J.L. - he is one of the few i am aware of who has imported custom Meshes into the Game..


will answer further Questions this Afternoon. its already past Midnight here... Oops


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Mon, 6. Aug 18, 01:00    Post subject: Reply with quote Print

Ok, I have Notepad++ getting XmlCopyEdit now.
Grabbed your dropbox, will work with that a bit.
I will get back with you tomorrow for sure.

Thanks again for the assistance.

Archaine


I got your ship running in the game, I will spend some time to disect it after reading up on the ship system.
(bounced around in the docking bay for five minutes before escaping :)) huh emoticons not working?

XML copy editor gives me validate errors on most of these documents, even the official egosoft ones.

"no decleration found for element 'mdscript, content, etc..'
I assume it is harmless.

I got it to validate my test script by adding a xmlns namespace, still don't fully understand that.

<mdscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Arc_Mod" xsi:noNamespaceSchemaLocation="md.xsd">

Completed the XML tutorial on w3schools, makes a little more sense now.
So the xsi namespace pointer gives xml editor the connection to the library for the handy dandy auto-completes. Insanely helpful!

Anyway back to it.

Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Mon, 6. Aug 18, 21:43    Post subject: Reply with quote Print

UniTrader,

I used your convert tools on my extracted directory to get at the dae mesh versions.

Playing with them in Max now.

Thanks again for you help and your tools!

Archaine

PS: Will any of this apply to X4, as my true desire will be to use this experience for modding that baby!

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13721 on topic

Thank you for registering your game
PostPosted: Mon, 6. Aug 18, 23:38    Post subject: Reply with quote Print

not my tools - they were created by another user Wink

Also i assume that yes, it will help with X4 because from a technical standpoint its like an Upgraded XR (i would guess its a step similiar as from X2 to X3, but we will see)


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Tue, 7. Aug 18, 23:38    Post subject: Reply with quote Print

I rendered the skunk that I pulled. Turned out nice.

The Exterior
https://forums.chaosgroup.com/filedata/fetch?photoid=1006283
https://forums.chaosgroup.com/filedata/fetch?photoid=1006284
https://forums.chaosgroup.com/filedata/fetch?photoid=1006282
https://forums.chaosgroup.com/filedata/fetch?photoid=1006285
https://forums.chaosgroup.com/filedata/fetch?photoid=1006286
https://forums.chaosgroup.com/filedata/fetch?photoid=1006300

The Interior
https://forums.chaosgroup.com/filedata/fetch?photoid=1006289
https://forums.chaosgroup.com/filedata/fetch?photoid=1006288

StudioLighting
https://forums.chaosgroup.com/filedata/fetch?photoid=1006297
https://forums.chaosgroup.com/filedata/fetch?photoid=1006298
https://forums.chaosgroup.com/filedata/fetch?photoid=1006299


Wanted to post them here but don't see a way to upload.

Archaine

Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Fri, 10. Aug 18, 06:10    Post subject: Reply with quote Print

Hey UiTrader,

I was going to use your "UTRahanasHybridPlus" as a template and reverse engineer it. After looking through the content in detail, I think maybe a simpler ship might be a better choice. (Like the police car)

The big part I am missing is the connections to the xmf content that represents the ship. Since you were not using any custom meshes, I see no example of where the connections to the mesh data are made, I assume some pointer in your files makes this connection through a xml called out in there somewhere, could you point me in the right direction. I will start picking apart a smaller ship in the mean time, and may find this connection in doing so.

I will be exporting my mesh data from Max and will mimic the format for materials etc. that I am seeing in the imports I have tested. Once I have the dae from max, I assume using the convert tool to turn it into a xmf and then into xml will be the steps needed.

Also finally found the skunk in the dock with the landing gear down, am planning a render for that, took awhile to find, and some skunk parts I was missing are included, like the mining laser, looked everywhere for that and could not find the dae for it. And the weird reverse engine looking things on each side of the lower hull, not sure what those are or where to find them. But they are in the docked version.

Man this is getting thick. But I'm hanging in there.

Archiane

Back to top
View user's profile Send private message
Archaine





Joined: 08 Dec 2015
Posts: 17 on topic

Thank you for registering your game
PostPosted: Fri, 10. Aug 18, 20:29    Post subject: Reply with quote Print

Skunk Landed with the Gear Down. (Vray Renders)
https://forums.chaosgroup.com/filedata/fetch?photoid=1006651
https://forums.chaosgroup.com/filedata/fetch?photoid=1006652
https://forums.chaosgroup.com/filedata/fetch?photoid=1006653
https://forums.chaosgroup.com/filedata/fetch?photoid=1006654
https://forums.chaosgroup.com/filedata/fetch?photoid=1006655

Now with the argon docking area.
https://forums.chaosgroup.com/filedata/fetch?photoid=1006683
https://forums.chaosgroup.com/filedata/fetch?photoid=1006684
https://forums.chaosgroup.com/filedata/fetch?photoid=1006685
https://forums.chaosgroup.com/filedata/fetch?photoid=1006686
https://forums.chaosgroup.com/filedata/fetch?photoid=1006687

Effects
https://forums.chaosgroup.com/filedata/fetch?photoid=1006702
https://forums.chaosgroup.com/filedata/fetch?photoid=1006701

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Control Panel
Login Data
The time now is Tue, 21. Aug 18, 15:37

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.18832 seconds, sql queries = 29