Jump to content
Sign in to follow this  
i0n0s

[Alpha] RTE for ArmA II

Recommended Posts

Hi there,i got a prretty annoying bug actually.I cant export the objects i placed.Getting a error message:" Variante des Typs "0" konnte nicht in Typ "Interger" konvertiert werden.

Whats the problem?thanks !

Share this post


Link to post
Share on other sites

Some error when saving something into the XML file.

Can you show me what you are trying to export?

So does it contains e.g. waypoints, trigger, which kind of units etc?

Share this post


Link to post
Share on other sites

Thanks, but i allready solved it by just saving the mission again with a other name. Guess there was a problem cause i deleted one of the .bak files in the mission folder...Best Addon btw:)

Share this post


Link to post
Share on other sites

Now i got a new problem here;-(

About Templates...

They are for placing bases or objects and units later in the game, only if you called the SQF, to reduce lag caused of too many stuff.

Do i understand the use of it right?Cause i want to pop things up only later in a mission with a sqf call.

Problem is everytime i try to export things as Template[choose all]

its says "COuldnt write the whole data"; and nothing is exported in RTE Capture.

Help would be much appreciated,thank you!

Share this post


Link to post
Share on other sites

What was the name of the template?

The name has to be a valid file name, which limits the possible chars. And that could cause such a message.

But was that the original message?

In general: Templates are the same as object compositions.

They are useful if you want to place the same structure at multiple places.

But if you just don't have generic stuff, then you simple export and convert to SQF.

The created SQF will create the placed units when you execute him.

Be aware that you need to have RTE on the server and to set

ION_RTE_Setting_EditorMode = false;

before calling the scripts (otherwise they will be disabled and don't react).

@Binesi:

Have you got my mail?

Share this post


Link to post
Share on other sites

Hm i want to use it for an Sinpleplayer Mission.

Dont get what i do wrong....Heres what i do

1.Place a player in the editor

2.open real time editor

3.place objects and units

4.trying to export all stuff in a template, so i can call it if its needed in the mission

But i just cant export it as template,it says "couldnt write the whole data".

I also tried to just export the stuff in RTECapture and copy it into a sqf, what i call with, "player execute "template1.sqf" in my mission but nothing happens.Do i need to call it with a server in SP too??

Edited by Himmelsfeuer

Share this post


Link to post
Share on other sites

Can you give me a screen shot of RTE when exporting a template and a screen shot of the error message?

Try also to activate the debug log in the options if it reports something.

This is important for me, so that I can fix this bug.

About the normal export:

You use the following code:

if (isServer) then { //makes sure that the script runs only on the server since the objects are created globally
waitUntil{not isNil "ION_RTE_PreInit"}; //waits till the RTE is initialized
ION_RTE_Setting_EditorMode = false; //enables movement for the AI
[] execVM "template1.sqf"; //execute the script
};

Share this post


Link to post
Share on other sites

same problem Himmelsfeuer

love this tool but i just cant exporte template same problem

love to equip. soldiers with diff. weapons

it would be nice to have addon that you can use in editor equip. soldiers with any weapons without template or writing in INTL. line

Share this post


Link to post
Share on other sites

lol how do i turn things around and up and down in this editor?

and when i did my thing in the 3D editor and i go back to the normal 1 everything is gone?, how do i save it?

Edited by warghost20

Share this post


Link to post
Share on other sites

@ghost:

http://rte.jonasscholz.de/manual#How_to_use_ArmA_RTE

http://rte.jonasscholz.de/manual#How_to_export

and using the project button on the top right.

@Himmelsfeuer & SuperRat

I finally was able to reproduce it. I've spotted the code which causes this message. Now I need to find out why it does it...

Edit:

Found it. And it was *rataplan*:

A missing private-statement. :rolleyes:

Thanks to uiNameSpace some code was moved into another scope. And therefore the variables are uninitialized...

And A2 doesn't report it, ignoring the fact that it should report.

Please vote for the bug.

Exporting as template should be possible again in the next update :)

Edit2:

New version out now:

http://rte.jonasscholz.de/blog/2009/11/08/changelog-08-11-2009

Hopefully those bugs are history.

Edited by i0n0s
Release :)

Share this post


Link to post
Share on other sites

way way better i0n0s but know sometimes it crashes the game and RTE is telling me that status is active but RTE screen is frozen then i gotta restart com. to get it working

---------- Post added at 03:25 PM ---------- Previous post was at 03:24 PM ----------

also couple min. in the game it becomes blury

Share this post


Link to post
Share on other sites

Hey having same problem as warghost how do place things with RTE and have them saved to 2d editer aswell, spent ages making village with defences went back to 2d editer and every thing was gone was a shame is it even possable.

cheers

Love the tool by the way:)

Share this post


Link to post
Share on other sites

Can't just someone reply which uses the tool?

For just saving use the project-management on the top right.

For final saving use the export feature.

Share this post


Link to post
Share on other sites

Thanks for your Update!

Sadly i still get this error message very often when im trying to export placed objects into my created 2d sqf mission.

"Variante des Typs (NULL) konnte nicht in Typ (Integer) konvertiert werden".

Maybe i do something wrong, but i cant imaging what this should be..?

First i thought your RTE got problems exporting triggers and modules which was allready created with the 2d editor before, but after deleting them and then trying to put the RTE Stuff with my sqf together it still didnt work.;-(

Share this post


Link to post
Share on other sites

I need more details on this error:

When exactly did he occur?

Directly when exporting from RTE or when displaying it within RTE Capture.

Are you able to save the XML file?

If yes, please send it to me.

If not: What kind of objects are you exporting?

I need more details to locate the error.

About modules: Please don't use them: RTE will synchronize later after the object creation, so the modules won't be connected and shouldn't be able to do anything.

Share this post


Link to post
Share on other sites

Ok, here is what i did:

1.Creating a mission in the 2d Editor, some Units, Objects and Triggers in it, also CivilianCar Module and Animal Module.

2.Saving the Mission.Now i got my SQF File.

3.Opening the Mission in RTE

4.I created some Wrecks and Objects, not Triggers Modules ore other Stuff.

5.Now i choose "Select All", then Export Selected.

6.Switching to RTE Caputure, they are all in the list,no error.

7.Now i try to melt the object list with the SQF File, thats when i get the Error.

To make sure thats not the problem...- Sometimes i deleted the .bak files in the mission folder. But i dont think its the problem, cause to put the objects into the SQF you only need the SQF file, right?

Thanks for your support!

Share this post


Link to post
Share on other sites

I think you're mixing SQF with SQM since the 2D editor creates a SQM file.

But step 6. is a good news, at least in reproducibility ;)

Can you save the exported objects within RTE Capture and send me that file?

Then I can reproduce the error and fix it.

Thanks

Share this post


Link to post
Share on other sites

I'm running current RTE with most recent beta on Windows 7 32bit.

If I close RTE Capture, Arma2 hangs every time and I have to terminate it via task manager.

i0n0s, think you could add a "clear all" feature to RTE capture? Due to crashes I periodically "Export all", however this leads units multiplying like rabbits as previous ones aren't cleared. Edit: Found that File->New does the equivalent ;)

Cheers for the great work!

Edited by trooper_ryan

Share this post


Link to post
Share on other sites

Dont delete the .BAK file too untill you know everything is oki becuase if something goes wrong you dont have the backup sqm to go back too.

Just open the bak files in notepad and copy and paste the txt out over your mission.sqm if something went wrong with the port. lol

So dont delete em until the end

Share this post


Link to post
Share on other sites

Hey, question.

I placed some civi's with animations on the market in afgani to make it look like people are selling and buying, Now when i place them in RTE and save everything merge it with my mission sqm and load the mission, some civi's are turning around in little steps, so they aint facing the market nomore.

And they all got a big formation line in the init automaticly and dostopthis;

How do i stop them from turning around?

Thanks for ya time..

Share this post


Link to post
Share on other sites

What do you mean with "big formation line"?

The "doStop this;" will get added as soon as you move a unit. This makes sure that the unit will stay at its position and doesn't return to formation.

The direction should work. Can you give me the xml-file and some screens?

@Himmelsfeuer:

Is this bug report from you?

http://rte.jonasscholz.de/bugs/view.php?id=148

I'll take a look at those objects and the export and merging of them.

Share this post


Link to post
Share on other sites

Ionos, that last bug report was from me.

could not convert varient of type (Null) into type (interger)

I get this when I try to merge with SQM. It was working fine, then suddenly I keep getting this message everytime I try to merge now. I tried to reinstall RTE and still same result. I am currently running a few mods (CBA, polish_police,FFFA_Terrorist) I get the error now everytime I want to merge with SQM so lately I cant use the RTE but I have my saved XML files still. No matter how small an object unit is it will save XML ok and export ok but wont merge, I tried several times with differnt units and objects. Could you tell me how to fix? TY

Edited by eyecon

Share this post


Link to post
Share on other sites

can't seem to get it working.

I do can start arma2 by the RTE Capture program. When i activate monitor in RTE Capture the game crashes.

But when i select "use RTE Capture DLL", it doesnt even want to start Arma2

Am using Win7 64, with RTEditor, CBA addon's and latest beta.

RTE is updated and checked with update button.

What am i doiing wrong?

My game crashes.

Share this post


Link to post
Share on other sites

@eyecon:

If this happens to every exported data, have you tried different mission.sqm?

Maybe the reason is inside the mission.sqm. That I expect something which doesn't exist.

Can you take a look and mail me the mission.sqm which causes problems?

At least if my theory is right ;)

@Killg0re:

That's also my combination.

Have you tried to launch ArmA 2 from RTE Capture without having "use RTE Capture DLL" checked? This helps to identify if a path is set wrong.

The DLL will get injected 1 second after the process was launched, so you should be able to see the process.

The following image shows my settings:

7xsydout.png

If the crash still happens: Do you have more details about the crash?

Share this post


Link to post
Share on other sites

Have you tried to launch ArmA 2 from RTE Capture without having "use RTE Capture DLL" checked?

yes, then i can get in RTE editor.

With "use RTE Capture DLL" unchecked, Arma2 starts,and i can get in to the editor, put a unit on the map, preview. Then i get message: NO CONNECTION TO RTE Capture established..... The program RTE Capture itself say's Status: Inactive.

The following image shows my settings:

7xsydout.png

If the crash still happens: Do you have more details about the crash?

When i use "use RTE Capture DLL" checked, it will not even start Arma2.

Arma2.rpt contains this:

=====================================================================

== D:\_ArmA 2\beta\arma2.exe

== "D:\_ArmA 2\beta\arma2.exe" -mod=@CBA;beta;@RTEditor -nosplash -window -showScriptErrors -x=1280 -y=800

=====================================================================

Exe timestamp: 2009/12/03 20:21:37

Current time: 2009/12/04 14:59:12

Cannot register unknown string STR_USRACT_ACTION_CONTEXT

=======================================================

-------------------------------------------------------

Exception code: C0000005 ACCESS_VIOLATION at 69F107B5

Edited by Killg0re
adding details

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×