Entity Singleplayer

A wealth of applications with which you will need to mod Halo 2.
Post Reply
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Entity Singleplayer

Post by XZodia »

I fixed entity so you can build raw into singleplayer maps.

Its awesome =)

Sorry that its not in Troy's entity, it had some issues with building when I was doing this.
If its stable again soon, I might try to transfer the changes.

I may have also fixed other bugs...
I threw in a quick fix for building vehi's so you can build in a new warthog without having to fix it afterwards, but I didn't test it.
Attachments
Entity SP Source.zip
(3.79 MiB) Downloaded 550 times
Entity Singleplayer.zip
(2.04 MiB) Downloaded 619 times
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
DoorM4n
Posts: 2154
Joined: Sun Dec 09, 2007 3:01 am
Location: Houston

Re: Entity Singleplayer

Post by DoorM4n »

No way! I remember SP modding was terrible--I guess it was because of the raw. Now we transfer things into it the map without issue?

Well Done!
Image
Remnant! We were the last stand.
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Entity Singleplayer

Post by troymac1ure »

Version 2.1.8? :roll:
I need sleep now, but I guess I should throw out the build fix version ASAP. lol
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Entity Singleplayer

Post by troymac1ure »

Were all the changes in Builder.cs? If so, then they will now be encorporated into 2.1.23

EDIT:
Found a bug in MapAnalyzer.cs. It looks like FindByType(RawDataContainerType, int) was never used before and the way it is setup, it will not find index 0.

Code: Select all

public int FindByType(RawDataContainerType type, int index)
{
    int tempc = 0;
    for (int x = 0; x < chunks.Count; x++)
    {
        LayOutChunk c = (LayOutChunk)chunks[x];
        if (c.rawType == type)
        {
            tempc += 1;
            if (tempc == index)
            {
                return x;
            }
        }
    }

    return -1;
}
I just changed:

Code: Select all

int tempc = -1;
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Entity Singleplayer

Post by XZodia »

Most of the changes were in builder.cs but there were some other changes, including the one you mentioned, I think they were all in mapanaylser.cs

Remove these lines at the end of the file:
layout.SortChunksByOffset();
layout.SortRawByOffset();

I thought there was at least one other change in mapanaylser, but I couldn't find it...
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Entity Singleplayer

Post by troymac1ure »

I'll compare the files and see when I get home.
User avatar
nullen
Posts: 18
Joined: Wed Aug 31, 2011 2:50 am

Re: Entity Singleplayer

Post by nullen »

Does this mean .chars be built into them?
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Entity Singleplayer

Post by XZodia »

I'm not sure I understand the question but I think the answer is yes.
You can build any tag into a single player map with this.
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
Post Reply