PDA

View Full Version : The Open Sauce Hek quick debug/tutorial thread



Dwood
September 26th, 2009, 10:55 AM
Okay so lately I've decided to take a dive into Open Sauce's new Hek. While some have claimed it is buggy, I will admit I have had problems as well, however most, if not all of them are quickly fixable.

The first error I've ever gotten was the (slightly) infamous "kludge" error.


09.25.09 18:12:29 sapien pc 01.00.08.0616 ----------------------------------------------
09.25.09 18:12:29 reference function: _write_to_error_file
09.25.09 18:12:29 reference address: 401b13
09.25.09 18:12:29 Couldn't read map file './sapienbeta.map'
09.25.09 18:13:31 Couldn't read map file './sapienbeta.map'
09.25.09 18:13:31 EAX: 0x00000000
09.25.09 18:13:31 EBX: 0x00000040
09.25.09 18:13:31 ECX: 0x00000000
09.25.09 18:13:31 EDX: 0x00000000
09.25.09 18:13:31 EDI: 0x0012E960
09.25.09 18:13:31 ESI: 0x0012EE8C
09.25.09 18:13:31 EBP: 0x0012ED38
09.25.09 18:13:31 ESP: 0x0012E944
09.25.09 18:13:31 EIP: 0x00417E20, 8B 01 8B 96 ?????
09.25.09 18:13:31 0012FFF0 ?????
09.25.09 18:13:31 004053C0 ?????
09.25.09 18:13:31 7FF89EB8 ?????
09.25.09 18:13:31 7FF514CE ?????
09.25.09 18:13:31 7FF5152C ?????
09.25.09 18:13:31 7FF528A2 ?????
09.25.09 18:13:31 00751B18 ?????
09.25.09 18:13:31 004F8200 ?????
09.25.09 18:13:31 EXCEPTION_ACCESS_VIOLATION


^^^^ With default Open Sauce coded .dll compiled (kludge error)

With normal d3d9.dll:

09.25.09 18:12:05 sapien pc 01.00.08.0616 ----------------------------------------------
09.25.09 18:12:05 reference function: _write_to_error_file
09.25.09 18:12:05 reference address: 401b13
09.25.09 18:12:05 Couldn't read map file './sapienbeta.map'


Just cut and paste the Opensauce/d3d9.dll to outside of HaloCE's root directory while using OS_Sapien. As far as I'm aware, Sapien is the only hek tool that has this problem.

_____

Project_Yellow tag:

There's another error, which is quite interesting, because I didn't even know of the tag's existence, was Korn's "i've got a lovely bunch of corncobs.project_yellow" tag.

-----> If you got this you did not properly set your Project_Yellow reference (that is the default tag if you save/open a map from guerilla or sapien that hasn't been used with OS_hek yet)

Open guerilla, file -> new -> project_yellow, for best results, I think that using the same name as the map would work best. (for an example, i'll use tutorial) name it tutorial. From there you will see a list of brand new fields:


http://lookpic.com/t/789/9mJ2lyh6.jpeg (http://lookpic.com/i/789/9mJ2lyh6.jpeg)
http://lookpic.com/t/184/06xgPw88.jpeg (http://lookpic.com/i/184/06xgPw88.jpeg)


For now, just save the project_yellow tag without changing anything. Next, open the scenario tag from OS_Guerilla. At the top, you will see a part called "project yellow definitions" click browse, and go to your project_yellow tag and press ok.

Was that so hard?

Old Fix:
Just create your own tag with that name and put it at the root of the Halo_CE folder, I'm not sure what references it anywhere though.
_____

Another thing is that if you have OS_guerilla open, and can't see the "project_yellow" tag type when creating new tags, cut and paste the tag_groups.map file from the original OS_folder you extracted the OS_hek from.

the1
September 27th, 2009, 08:07 AM
keeping in mind it would be advisable to make your own project_yellow_globals tag. as it allows you to use all the prittyeddd up features like gravity changing and what not :D!... oh! which reminds me. there's a post i need to make :D!

FRain
September 27th, 2009, 12:07 PM
Um, isn't that the fucking POINT of Open Sauce?

the1
September 27th, 2009, 05:38 PM
yeah... but i thought id mention the pjyeglobals tag because Dwood 4got XD...
and don't you need to have the old globals in the globals overide so it can pull some stuff out of it also?

Dwood
September 27th, 2009, 06:13 PM
I didn't forget, I just haven't had any problems with it. It should be pretty self-explanatory.

CodeBrain
September 28th, 2009, 12:26 AM
Uh, seem to be having a problem with OS_Sapien (Shouldn't matter which version)


09.28.09 00:01:00 [secret line 111] this is not a valid function or script name.: gravity 0.00185)

It's probably because the d3d9.dll file is needed for the command to work, but since Sapien crashes trying to load the dll...

I really wanted to add this particular command to a certain script...

Dwood
September 28th, 2009, 07:01 AM
Uh, seem to be having a problem with OS_Sapien (Shouldn't matter which version)



It's probably because the d3d9.dll file is needed for the command to work, but since Sapien crashes trying to load the dll...

I really wanted to add this particular command to a certain script...


I would suggest you post that in Korn's OS Update 2 RC thread, because other than changing that in the project Yelo tags we can't do anything about that.

Kornman00
September 28th, 2009, 08:42 AM
because 'gravity' is a global, not a function...

Dwood
September 28th, 2009, 01:46 PM
because 'gravity' is a global, not a function...

For quick reference: Gamma's Variables tutorial (http://hce.halomaps.org/index.cfm?fid=4645)

CodeBrain
September 28th, 2009, 02:53 PM
because 'gravity' is a global, not a function...

Setting it up as a global doesn't seem to work either.

Using this:


(global short gravity 0.0037)

results in


there is already a variable by this name.: gravity 0.0037

Unless the global I did above is done differently, I assume that it's because Project Yellow uses the variable already from the project_yellow tag.

Dwood
September 28th, 2009, 02:59 PM
the global is already set. Just change it in the scripts, you don't need to declare another global.

ps you need to read my whole post. And follow the tutorial. It doesn't tell you how, but the idea is easy enough.