Jump to content

  • Log In with Google      Sign In   
  • Create Account

thd.MM

Member Since 06 May 2011
Offline Last Active Oct 04 2013 01:07 PM

Posts I've Made

In Topic: Crash on exit (binding wrong?)

06 September 2013 - 03:50 AM

The crash was unrelated.

Thanks for the CRT tip. 

Visual Leak Detector is very good too.


In Topic: Crash on linux (gcc 4.3?)

06 September 2013 - 03:49 AM

No, the memory leak remains. I will need to isolate the problem somehow cause right now there is a 16kb leak on every initialized script.


In Topic: Crash on linux (gcc 4.3?)

27 August 2013 - 04:39 AM

Its working. The issue was unrelated to gcc. It turns out some old or seemingly random angelscript code was used in creating the lib. A full clean of angelscript and rebuilding again helped.


In Topic: Angelscript to C++ translator

22 August 2013 - 04:13 AM

I tried the AOT compiler however it produces hundreds of gigabytes (not joking) of c++ code. You can imagine that is useless.

 

Most of the code I'd like to translate is pretty straightforward. For example, here you just need to change @ to *.

void onTick( CMap@ this )
{
	// local player check end

	 CBlob@ localBlob = getLocalPlayerBlob();
	 if (localBlob !is null)
	 {
		 if (!myPlayerGotToTheEnd && (localBlob.getPosition() - endPoint).getLength() < 32.0f)
		 {															 
			myPlayerGotToTheEnd = true;
			Sound::Play("/VehicleCapture");
		 }
	 }

There might be a problem with virtual classes and such. But I purposfully avoid using AS specific things like traits.

 

The file size of these translations won't be small too, because I imagine all the global vars and functions need to be in one common header attached to every single translated script, however it won't be anywhere near a couple gigs.


In Topic: Crash on exit (binding wrong?)

21 August 2013 - 12:57 AM

Will upgrade to the latest Angelscript cause that sounds like it might be it.

 

I use Visual Leak Detector and that was its output. 

Will report back.


PARTNERS