O'Reilly logo

Halo 2 Hacks by Stephen Cawood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #56. Remix Multiplayer Levels with Campaign Mode Objects

Use Insolence to inject single-player campaign assets into multiplayer maps.

One of the frustrations you'll run into when hacking your own maps is that campaign mode objects, such as the Fuel Rod Cannon, are challenging to inject into multiplayer maps. For most people, it is simply too much work to use single-player objects in their mods. The Insolence map editor eases this limitation.

Insolence was conceived when Iron_Forge told tjc2k4 that he wanted a program to support IFPs (Iron_Forge plug-ins). Until recently, most modding apps used dynamic plug-in systems based on Extensible Markup Language (XML). Each system was modified to include a few meta tags. The general idea for a plug-in file was that it had a list of entries with some format similar to:

The Name of something to change
The Offset/Location of the value
And The type of value it is

A plug-in was simply a list of entries like these:

  <value>
  <type>float</type>
  <offset>0x1c</offset>
  <name>Max radius</name>
 <desc>Maximum radius around the origin that the effect applys</desc>
 </value>

This meant that plug-ins would only allow you to change things for which they had an entry. Sometimes things like vehicles can have 1,000 bytes of data, with approximately 20–30 known values. In the old plug-in systems, less than 3% of the vehicle was actually modifiable. However, an IFP lists the entire structure of a tag. Even fields that are labelled "unknown" are still editable. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required