Skip to content

Commit

Permalink
Change MapUid
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Jul 13, 2023
1 parent d7f8fd7 commit c2dad69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions EnvimixForTmuf/EnvimixForTmufTool.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using GBX.NET.Engines.Game;
using GbxToolAPI;
using System.Text;
using TmEssentials;

namespace EnvimixForTmuf;
Expand Down Expand Up @@ -35,6 +36,7 @@ public IEnumerable<NodeFile<CGameCtnChallenge>> Produce()
};

var prevPlayerModel = map.PlayerModel;
var defaultMapUid = map.MapUid;
var defaultMapName = map.MapName;

for (int i = 0; i < cars.Length; i++)
Expand Down Expand Up @@ -67,6 +69,7 @@ public IEnumerable<NodeFile<CGameCtnChallenge>> Produce()
};

map.PlayerModel = (car, "Vehicles", "");
map.MapUid = $"{Convert.ToBase64String(Encoding.ASCII.GetBytes(Guid.NewGuid().ToString()))[..10]}{defaultMapUid.Substring(9, 10)}ENVIMIX";
map.MapName = string.Format(Config.MapNameFormat, defaultMapName, modernCar);

var pureFileName = $"{TextFormatter.Deformat(map.MapName)}.Challenge.Gbx";
Expand Down

0 comments on commit c2dad69

Please sign in to comment.