How To Integrate RtC With NewGen

Sevion

The DIY Ninja
Reaction score
413
What? I've used Garena before.

It's an EXE that launches WC3 through a button. And in doing so, injects packets into the war3.exe so that WC3 can see games on Garena in the LAN list...
 

ic3_water

Member
Reaction score
0
This my first map in rtc :D
[YOUTUBE]pTk_LyFGiPg[/YOUTUBE]
[YOUTUBE]NT_hNsaQfbo[/YOUTUBE]
I hope everyone like it ~.~
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
A little help here. I think I forgot something.

Whenever I enter RtC, nothing happens.
testbj.png
 

koeienboei

Member
Reaction score
4
I think i installed RtC correctly and i tried to use this function:

GetMouseTerrainX

But it sais its undeclared

I unziped the RtC package and replaced the text in the files like the post sais
 

Sevion

The DIY Ninja
Reaction score
413
You need to either declare the function or import it into your map. The common.j.
 

Sevion

The DIY Ninja
Reaction score
413
The import manager.

After importing, change the path to Scripts\common.j

However, if you're only using a few, you can declare them the way tooltiperror showed.
 

Azlier

Old World Ghost
Reaction score
461
No, they're natives. They're already defined in C++, none are ever defined in Jass. All you need to do is declare the name and make sure you run Wc3 with the launcher RtC provides.
 

koeienboei

Member
Reaction score
4
I declared them like this:
scope Initialization

local function Actions takes nothing returns nothing
native GetMouseTerrainy takes nothing returns real
native GetMouseTerrainX takes nothing returns real
endfunction

//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( Initialization, function Actions )
endfunction

endscope


But when i save the map the jass compiler gives me some errors and sais this is the code i wrote:

//===========================================================================
// Trigger: Initialization
//===========================================================================
//TESH.scrollpos=0
//TESH.alwaysfold=0
// scope Initialization begins

local function Actions takes nothing returns nothing


endfunction

//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger()
call TriggerAddAction(Initialization , function Actions)
endfunction

// scope Initialization ends

As you can see, the function actions is empty for some reason...

Why:confused:
 

tooltiperror

Super Moderator
Reaction score
231
JASS:
local function Actions takes nothing returns nothing
native GetMouseTerrainy takes nothing returns real
native GetMouseTerrainX takes nothing returns real
endfunction


Clearly you do not know JASS very well ... you can't have a 'local' function, and you don't declare natives inside of functions.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top