Moonfish Progress Reports

Discuss your Halo 2 mod project here.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Moonfish Progress Reports

Post by JacksonCougar »

Image

So I've been tinkering around with Bullet3 (using BulletSharp wrapper) and kinda got this working. It janky as hell but coming along.

Some notable milestones were made in moonfish over the last month as well:
moonfish is now based on the c-sharp codeDom code-compiler and pulls tag-layouts from h2vGuerilla.exe directly
moonfish can load shader assests and try to render them in opengl (still no native shaders though)
moonfish can rebuild cachemaps (.map files) incorporating changes made to tags in memory with the output
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

Map rebuilds? Like full rebuilds?
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

XZodia wrote:Map rebuilds? Like full rebuilds?
Yea, it parses the tags out of the cache like entity would, but it doesn't shift anything around, it just re-writes the file then does a deletion-move operation on the existing file. So its a rebuild not the same map.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

So can you add tags from other maps?
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

XZodia wrote:So can you add tags from other maps?
Kinda. It just doesn't relink the string or tag Idents because I've been mulling over how I want to do that still.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

cool
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

That is some seriously awesome shit.
Get a download up!
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

I have to finish some stuff before I can release anything and I have some milestones to meet first. When I release moonfish will have a working scenario editor though, with spawn adding and removing, and placements.
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Moonfish Progress Reports

Post by troymac1ure »

Wow Jackson! That looks incredible. I haven't touched anything H2 related in a long time, but I think I'll have to tinker when you release that.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

Image

Time for another progress reports, this time I'm actually really happy about the little amount of progress I've made.

Moonfish can now rebuild maps from a source map. Takes your source map, chews on it, and spits out a new map for you with everything hunky-dory. After getting my initial test map (ascension.map) to rebuild and load in-game I decided to blindly make a video for you guys while picking a semi-random map to rebuild (derelict.map). This video is actually the first time I tried this rebuild so you can see how that went.

This might not seem like a big feature to some but to me this is huge. This is a milestone. And for shits and giggle you could use moonfish to 'fix' black-screening maps because most of the time that is caused by an alignment issue of the meta and moonfish will automatically attempt to realign the tags properly.

Take the time this took to rebuild with a grain of salt; this is heavily debug ridden code with lots of information being sent to the console stream which slows things down considerably. The release version has a target for rebuild below 5000ms. Also it was waiting on a break-point for a while because I'm not a smart man :D

https://www.youtube.com/watch?v=9C_eHV4 ... e=youtu.be

Watch it when its live. I'm sorry about the music if it doesn't get muted. I forgot to disable the sound in shadowplay.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

Awesome.

It amuses me that you went to all this effort but still used Entity to resign the map =P
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
Thrasher Alpha
Posts: 125
Joined: Wed Feb 23, 2011 7:30 am

Re: Moonfish Progress Reports

Post by Thrasher Alpha »

Awesome :)

Does this mean I can make AI in MP with no troubles now?
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

AI in MP is a complex subject...
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

Yea, I dunno.... what is needed for that?
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Moonfish Progress Reports

Post by Click16 »

JacksonCougar wrote:Yea, I dunno.... what is needed for that?
You need a reflexive/tagblock (whatever you wanna call it) from a SP bsp, char tags, sounds, and scnr reflexives/tagblocks
Image
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

That's bare minimum, if you dont want them to act completely stupid, theres more to it than that
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
xXF3RcHoXx
Posts: 338
Joined: Sat Sep 06, 2008 2:36 am
Location: Mexico

Re: Moonfish Progress Reports

Post by xXF3RcHoXx »

Click16 wrote:
JacksonCougar wrote:Yea, I dunno.... what is needed for that?
You need a reflexive/tagblock (whatever you wanna call it) from a SP bsp, char tags, sounds, and scnr reflexives/tagblocks
You need in your scenario the biped, vehicle and weapon's pallete, plus ai squads, ai squad types, characters, ai zones and ai triggers.

and in your bsp the pathfinding chunk, which is unknown16 listed in h2guerilla

after rebuilding, you have to set everything up in the scenario to make them act decent, I have discovered it's not necessary to null SID's as they can be used to reference a specific AI unit in an AI squad, plus setting up AI platoons and initial states makes them act relatively smarter, and with xzodia's AI Styles fully-mapped plugin, you can make them act more aggresively, thus enhancing the gameplay. I have pulled out all these tricks in Deep Freeze and I can say, the AI in my mod it's pretty decent, the AI banshee actually moves through the BSP really good
We are the last stand.
Aumman Anubis wrote:I'm still trying to figure out how a cat grooming defeats a failing economy.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

At this point you can pretty much add whatever data you need to the tags and rebuild the map and there should not be any issues there. But you will need to edit the meta values yourself.

But I don't have gui code to do this yet, however it is literally just a couple of lines of code to add new chunks or clone chunks. The tag layouts are basically implementing IList

Edit; I lied—they are arrays but that's still pretty straight forward.
Thrasher Alpha
Posts: 125
Joined: Wed Feb 23, 2011 7:30 am

Re: Moonfish Progress Reports

Post by Thrasher Alpha »

That really makes me want to mod again. F3R do you know what values? And Xzodia do you mean scripting?
xXF3RcHoXx
Posts: 338
Joined: Sat Sep 06, 2008 2:36 am
Location: Mexico

Re: Moonfish Progress Reports

Post by xXF3RcHoXx »

Thrasher Alpha wrote:That really makes me want to mod again. F3R do you know what values? And Xzodia do you mean scripting?
This is my latest mod viewtopic.php?f=4&t=2336 you can see there the result you can get while adding AI in MP.

Well, the method I use is really old, it's a method discovered by Grimdoomer back in 2007 using H2core and H2guerilla, if you want, I can get you through these apps so you can make a successful AI in MP mod.
We are the last stand.
Aumman Anubis wrote:I'm still trying to figure out how a cat grooming defeats a failing economy.
Thrasher Alpha
Posts: 125
Joined: Wed Feb 23, 2011 7:30 am

Re: Moonfish Progress Reports

Post by Thrasher Alpha »

That would be nice. My AIM is the same as my name.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Moonfish Progress Reports

Post by JacksonCougar »

Image

Just some basic user experience forms for Moonfxsh I started working on. It's been a trial keeping the code behind clean and separate from the base code. I expect to have a proper update soon to share but I thought I would share a teaser before hand.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Moonfish Progress Reports

Post by XZodia »

Looks good =)
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
DarkShallFall
Posts: 710
Joined: Thu Jan 03, 2008 5:29 pm

Re: Moonfish Progress Reports

Post by DarkShallFall »

Image
Post Reply