Hi!
I'll try my best to help you with this
I think the main thing to keep in mind is : To have your title pack make packs, you need to launch it in Maker mode, and specify a title pack that you want to make.
To understand how to launch it in Maker mode, you need to look for file://Media/Station/MakerStation.Script.txt , which is the manialink of the
front cover of your title pack :
Code: Select all
Maker_EditNewTitle("MyExampleTP");
If you are executing this line of code, then the title pack will launch and create MyExampleTP@mylogin at the same time : It is in Maker mode, and the target title pack is MyExampleTP@mylogin. It might look like you launched your title pack as if nothing happened, but you can now use CTitleEdition to publish MyExampleTP@mylogin.
This title pack that you made can then be seen and accessed next time using the following lines of code :
Code: Select all
log(""^Maker_EditedTitles);
Maker_EditTitle(""^Maker_EditedTitles[0].TitleId);
This launches your title pack in Maker mode, and the target will be a title pack previously made by your maker (In our example, MyExampleTP@mylogin.)
Some things to note :
- It is best not to launch your title in maker mode without knowing if you're going to make a title. That is because if you save, load maps/replays/any asset it will get redirected to WorkTitles/MyExampleTP@mylogin/ and not in your UserDir.
- Your title pack, when launched, cannot create multiple title packs. You have to exit and come back to make another one.
- There are several cases of assets taking precedence. Generally, the assets of the edited title are first looked at, then it's the maker's assets. You can still look at your UserDir with some methods of CTitleEdition, namely File_ImportFromUser(Text FileName), File_Exists and so on.
BigBang1112 wrote: ↑26 Mar 2018, 18:32
Code: Select all
PackCreator - only available when the title author is the current logged user.
That means only the creator of the title pack (where the pack creation is done) can create new packs? How it works in the Title Maker when the creator of Title Maker is Nadeo?
In this instance, title author means the author of the
edited title. That means you cannot make a title pack that belongs to somebody else (You can't make Nadeo's title packs with the makers, for example.)
Back to the Build_Begin(), when building plain packs, do I have to type something in the TitleInfo or keep it Null?
What does CPackCreatorPack even mean here in Build_Begin()?
It has to be the following :
Code: Select all
declare PackCreator <=> TitleEdition.PackCreator;
declare CurrentPack <=> PackCreator.CurrentPack;
declare TitleInfo <=> TitleEdition.EditedTitleInfo;
PackCreator is the maker that you are using. TitleInfo will be the TitleInfo of the target title pack that you are making.
I hope that helps!