Page 1 of 1
Entity Singleplayer
Posted: Tue Jul 22, 2014 12:04 am
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.
Re: Entity Singleplayer
Posted: Tue Jul 22, 2014 12:19 am
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!
Re: Entity Singleplayer
Posted: Tue Jul 22, 2014 7:45 am
by troymac1ure
Version 2.1.8?
I need sleep now, but I guess I should throw out the build fix version ASAP. lol
Re: Entity Singleplayer
Posted: Fri Jul 25, 2014 6:19 am
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:
Re: Entity Singleplayer
Posted: Fri Jul 25, 2014 10:55 am
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...
Re: Entity Singleplayer
Posted: Fri Jul 25, 2014 8:12 pm
by troymac1ure
I'll compare the files and see when I get home.
Re: Entity Singleplayer
Posted: Mon Nov 10, 2014 10:17 pm
by nullen
Does this mean .chars be built into them?
Re: Entity Singleplayer
Posted: Mon Nov 10, 2014 10:43 pm
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.