HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Natives

05-05-2008, 04:10 AM#1
PurgeandFire111
I am trying to access the NewGen custom natives. Now, I couldn't find "injectdll(proc,"bin\japi.dll")" so I uncommented several DLLs.

Now, the problem is, I can't seem to be able to test the "Hello World" map. I can open it and everything but it gives me a fatal error.

Can anyone tell me the proper uncommenting needed for the custom natives?

EDIT: Whoops, I should have posted this in the NewGen thread or Warcraft Editing tools, right? Sorry if this is in the wrong forum. :\
05-05-2008, 04:58 AM#2
Strilanc
The readme is completely misleading because it's out of date.

If I remember correctly, you go to ongameload.lua and uncomment the japi and nativepack lines.
05-05-2008, 11:27 AM#3
Jazradel
I did exactly the same thing and got exactly the same result.

Edit: I didn't have UMSWE on when I tried it.
05-05-2008, 05:53 PM#4
Rising_Dusk
Moved.
05-05-2008, 10:55 PM#5
PurgeandFire111
Quote:
Originally Posted by Strilanc
The readme is completely misleading because it's out of date.

If I remember correctly, you go to ongameload.lua and uncomment the japi and nativepack lines.

I tried that... I think it still went berserk. I'll try to reinstall NewGen, then I'll try that. Maybe I accidentally messed with something.

@Rising_Dusk: Thanks, I wasn't paying attention to where I posted it at the time.

EDIT: It didn't work. Here is my ongameload.lua file:
Code:
-- Load libraries here that need to run after game.dll loads but after
-- native registration
-- e.g. war3err, japi, user created natives

if getregpair("Software\\Grimoire\\","Enable war3err") == "on" then
	loaddll("bin\\war3err.dll")
end
if getregpair("Software\\Grimoire\\","Enable warmachine") == "on" then
  loaddll("bin\\warmachine.dll") -- disable war3err.dll to use this
end
loaddll("bin\\japi.dll")
loaddll("bin\\nativepack.dll") -- requires japi.dll
--loaddll("bin\\warsoc.dll")
--loaddll("bin\\war3lua.dll")

That is all I did. And it shows this error message after loading the first two portions of the loading.


Btw, UMSWE is enabled.