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.
Entity Singleplayer
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Entity Singleplayer
- Attachments
-
- Entity SP Source.zip
- (3.79 MiB) Downloaded 550 times
-
- Entity Singleplayer.zip
- (2.04 MiB) Downloaded 619 times
- DoorM4n
- Posts: 2154
- Joined: Sun Dec 09, 2007 3:01 am
- Location: Houston
Re: Entity Singleplayer
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!
Well Done!
- troymac1ure
- Keeper of Entity
- Posts: 1282
- Joined: Sat Aug 09, 2008 4:16 am
- Location: British Columbia, Canada, eh
- Contact:
Re: Entity Singleplayer
Version 2.1.8?
I need sleep now, but I guess I should throw out the build fix version ASAP. lol
I need sleep now, but I guess I should throw out the build fix version ASAP. lol
- troymac1ure
- Keeper of Entity
- Posts: 1282
- Joined: Sat Aug 09, 2008 4:16 am
- Location: British Columbia, Canada, eh
- Contact:
Re: Entity Singleplayer
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.
I just changed:
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;
}
Code: Select all
int tempc = -1;
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: Entity Singleplayer
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...
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...
- troymac1ure
- Keeper of Entity
- Posts: 1282
- Joined: Sat Aug 09, 2008 4:16 am
- Location: British Columbia, Canada, eh
- Contact:
Re: Entity Singleplayer
I'll compare the files and see when I get home.
- nullen
- Posts: 18
- Joined: Wed Aug 31, 2011 2:50 am
Re: Entity Singleplayer
Does this mean .chars be built into them?
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: Entity Singleplayer
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.
You can build any tag into a single player map with this.