Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Maps
(view source)
Revision as of 20:10, 12 January 2019
96 bytes added
,
20:10, 12 January 2019
→Custom map
:
+ load map first to avoid error
Line 88:
Line 88:
private void OnSaveLoaded(object sender, SaveLoadedEventArgs args)
private void OnSaveLoaded(object sender, SaveLoadedEventArgs args)
{
{
−
//
create a
map
asset key for an '
assets/map.tbin
'
file
in your mod folder
+
//
load the
map
file from your mod folder
+
this.Helper.Content.Load<Map>("
assets/map.tbin
", ContentSource.ModFolder);
+
+
// get the internal asset key for the map
file
string mapAssetKey = this.Helper.Content.GetActualAssetKey("assets/map.tbin", ContentSource.ModFolder);
string mapAssetKey = this.Helper.Content.GetActualAssetKey("assets/map.tbin", ContentSource.ModFolder);
Pathoschild
translators
8,404
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version