View Full Version : REGEX Template for OFP->ArmA Script Converting
I was thinking... as somethings changed in ArmA concerning scripting, it might be possible to create a few fancy regex search and replace strings for converting scripts automagicly to ArmA.
Despite the fact that certain scripts rely on features that are not present or different in ArmA, e.g. Animations, I think it would be very great if the hugest parts of most scripts can be turned into ArmA with the click of a button, the smaller things and other edits/additions can still be done manually of coarse...
I know some basic regex, but if I should name at least someone who is huge amounts better, it's WGL.Q http://forums.bistudio.com/oldsmileys/smile_o.gif
Examples of the changes I'm talking about:
Code is now a distinct type, code must be put in between brackets {}, and may not reside anymore in quotes " " = string, except when the string is called with: compile string
As such, strings may also not be written in between brackets {} anymore http://forums.bistudio.com/oldsmileys/smile_o.gif
As such while, foreach, hint, call etc. must be rewritten in cases where the editor used " " where {} are needed in ArmA and visa versa.
Afaik Q is already working on something like that. http://forums.bistudio.com/oldsmileys/wink_o.gif
Afaik Q is already working on something like that. http://forums.bistudio.com/oldsmileys/wink_o.gif
Lol you gotto be kidding me http://forums.bistudio.com/oldsmileys/smile_o.gif Gonna get him on my MSN asap lol
Sgt_Eversmann
Dec 11 2006, 10:05
do I have to type
this flyinheight {20};
instead of
this flyinheight "20";
now?
because 2nd one doesn't work anymore and pops up a message that ; is missing or so !?
it's also wrong in mr-murrays editing book http://forums.bistudio.com/oldsmileys/sad_o.gif
edit:
got damnit I have to be blind, it's correct in the editing book by mr-murray! http://forums.bistudio.com/oldsmileys/smile_o.gif
this flyinheight "20";
take out the "" and it works just fine
Sgt_Eversmann
Dec 11 2006, 10:12
oh...err ok http://forums.bistudio.com/oldsmileys/tounge2.gif
never had that idea http://forums.bistudio.com/oldsmileys/crazy_o.gif
think I have to improve my creativity skill http://forums.bistudio.com/oldsmileys/rofl.gif
thanks http://forums.bistudio.com/oldsmileys/smile_o.gif
Sickboy
Dec 11 2006, 10:13
do I have to type
this flyinheight {20};
instead of
this flyinheight "20";
now?
because 2nd one doesn't work anymore and pops up a message that ; is missing or so !?
it's also wrong in mr-murrays editing book http://forums.bistudio.com/oldsmileys/sad_o.gif
Weird you get these questions from (well)known & respected modmakers from OFP, you would've guessed they understood R-T-F-M http://forums.bistudio.com/oldsmileys/pistols.gif http://forums.bistudio.com/oldsmileys/whistle.gif http://forums.bistudio.com/oldsmileys/tounge2.gif
http://community.bistudio.com/wiki/flyInHeight
---
Little update on the project itself... It seems Q is getting further and further and I've did a few tests with the replacer and it wasn't perfect yet but most definatly this will kick butt very soon! http://forums.bistudio.com/oldsmileys/smile_o.gif
Already got DAC & KI v2 running!! Still need to debug certain aspects as replace certain voices like "RUS15" etc and some moves, but the first mission is already ready based on it http://forums.bistudio.com/oldsmileys/smile_o.gif
(Altough DAC v2 etc will be kicking butt of coarse when it gets released, I feel that having DAC v1 in ArmA is already a great step ahead and a nice temporary solution until Silola finishes his master piece http://forums.bistudio.com/oldsmileys/biggrin_o.gif)
Already got DAC & KI v2 running!! Still need to debug certain aspects as replace certain voices like "RUS15" etc and some moves, but the first mission is already ready based on it http://forums.bistudio.com/oldsmileys/smile_o.gif
AWESOME DOOD. http://forums.bistudio.com/oldsmileys/yay.gif http://forums.bistudio.com/oldsmileys/yay.gif http://forums.bistudio.com/oldsmileys/biggrin_o.gif
Sgt_Eversmann
Dec 11 2006, 10:52
Sickboy,
true mod-addon-maker ye, but not scripter http://forums.bistudio.com/oldsmileys/biggrin_o.gif
I'm not very familiar with c++ and stuff, making my way through it and try to understand things. and from ofp I knew that it was this flyinheight "20"; ...so I thought it would be the same in ArmA but now I know better http://forums.bistudio.com/oldsmileys/biggrin_o.gif
ye that project sounds really cool, looking forward to it http://forums.bistudio.com/oldsmileys/thumbs-up.gif
Sickboy
Dec 11 2006, 10:56
Sickboy,
true mod-addon-maker ye, but not scripter http://forums.bistudio.com/oldsmileys/biggrin_o.gif
I'm not very familiar with c++ and stuff, making my way through it and try to understand things. and from ofp I knew that it was this flyinheight "20"; ...so I thought it would be the same in ArmA but now I know better http://forums.bistudio.com/oldsmileys/biggrin_o.gif
ye that project sounds really cool, looking forward to it http://forums.bistudio.com/oldsmileys/thumbs-up.gif
No biggy m8, was more or less joking about the fact that you didn't look it up at the WiKi... good first stop for everyone with such questions http://forums.bistudio.com/oldsmileys/tounge2.gif
Anyway, hope to see some productions from ye soon!
Sgt_Eversmann
Dec 11 2006, 11:00
heh ye the wiki, forgot to look into it, have to get used to that we have a wiki for ArmA http://forums.bistudio.com/oldsmileys/smile_o.gif
dunno if you have seen my pictures in photography topic, there you see the pmcs I started working on yesterday!
They are far from perfect but I give my best http://forums.bistudio.com/oldsmileys/smile_o.gif
sry for OT http://forums.bistudio.com/oldsmileys/whistle.gif
hi http://forums.bistudio.com/oldsmileys/smile_o.gif
a nice idea to convert the old scripts for Arma http://forums.bistudio.com/oldsmileys/thumbs-up.gif
Simple script projects can be converted thereby certainly well.
For the DAC, this kind of conversion is not sufficient.
Some Scripts must be changed ... sqs --> sqf.
The complete part of the unit creator must be rewritten.
Also the waypoint generation and the unit reduction,
which makes sense also in Arma.
For the moment I develop the "XCam Light".
This console helps me to have the DAC units under control http://forums.bistudio.com/oldsmileys/wink_o.gif
It will cost some more time, until DAC is really finished.
sorry, but I would like that the DAC optimally functioned.
bye
silola
Sickboy
Dec 11 2006, 13:10
hi http://forums.bistudio.com/oldsmileys/smile_o.gif
Hey Silola,
I fully agree with you. But there is one tiny little problem...
I Deny to make missions without DAC, you just made SUCH a great product... I truelly won't make missions without it, simple as that... so I had a choice... Convert your current work, or wait months (don't get me wrong, I very much understand why it takes long and that it is much work, really!! ), so I choose for the "1.5" solution lol...
Everything is already working, incl the ai creator (the new format of createunit of arma rox.. but you can still use old fashioned aswell! ), waypoints etc. etc. Even the KI2 expansion works fine except a couple of things.
I used the regex converter, and then I went manually debugging every single part, took me nearly 12 hours to get it working (near)properly with KI2 http://forums.bistudio.com/oldsmileys/smile_o.gif
I agree that DAC V2, fully written for ArmA, will both feature more and make better usage of the (new) functions in ArmA etc. etc. And I truelly can't wait for your masterpiece (in every sence) http://forums.bistudio.com/oldsmileys/smile_o.gif
btw Any ETA on Xcam Light? http://forums.bistudio.com/oldsmileys/biggrin_o.gif Are you going to make it also possible to use it as a spectator script after death, or just mission debugging again?
Quote[/b] ]Dunno if you have seen my pictures in photography topic, there you see the pmcs I started working on yesterday!
They are far from perfect but I give my best http://forums.bistudio.com/oldsmileys/smile_o.gifDid'nt check it yet, so frigging busy on all fronts lol, I love it, but it doesn't allow time for looking at photo-topics etc.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.