Modifying chapters....Oh god...
- Login to post comments
Sat, 06/16/2012 - 08:33
Can someone help me with creating new chapters? I mean give examples of where and how to put stuff together and such... Because i am making radioactive levels, and having so many levels is just perfect for a new (modified) chapter. Anyone?
When i decrypt the island1.xml.bin i get this:
What do i do with that? It is obvious that these are the levels of chapter 1. How do i get my own chapters in there????
Because writing signatures is too mainstream
Read the Reference Guide and edit the island.xml.
| Things I made | And even more |
That is exactly what i did. But it does not give me that much info, or maybe i just do not get it, as i am very new to this.
Because writing signatures is too mainstream
First of all, I recommend editing Chapter 2 not Chapter 1. Only modify Chapter 1 if you really really need to, like in a total conversion or something.
Second of all, I already mentioned in another thread that you can take a look at Puggsoy's Island, a simple addin I made so that people can see how custom chapters work. Take a look at what I've added and changed to see how to make chapters.
We should really make a chapter making tutorial, the problem is that it's quite complicated and it's a lot of work to explain it clearly. Still, more people are starting making chapters so it should get done.
However, before that comes around, just try. I made my chapter using only the current resources, and there's no reason you shouldn't be able to too. Read the reference guide, look how existing chapters are put together, try changing bits and pieces. Either way, you should try and understand as much as you can about goomodding and islands before going on an all-out chapter. Trust me, it's not easy, making levels is a piece of cake in comparison.
New GooFans Rules | My Addins
What i got from decrypting my island1.xml.bin and the .xsl of your merge directory are completely different. How did you even get the xls?
Because writing signatures is too mainstream
Puggsoy used DavidC's XML Diff Tool (see his signature for a link). However I find xsl files made by that tool hard to understand.
The xsl changes the map and name of the island and the first three levels within the island2.xml.bin. It also deletes the levels 4-11.
A handwritten xsl for Puggsoys chapter would look like this:
It's shorter and easier to understand.
on the run | keep on running | two-stroke-engine
XSL is sort of a way to tell GooTool what to do to an EXISTING file. In English, what that example says is something like:
XSL just tells the computer how to do that, in an easy-to-understand (and very powerful) way.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
I just use David's tool because I can't be bothered learning XSL, and as long as I don't edit the file myself it doesn't really matter how clean or ugly it is
But seriously, we've talked about XSL before in another thread. I talked about David's tool and everything. What the XSL does is transform the island2.xml.bin (not island1) into a different one, which contains my island's information.
By the way, have you tried understanding this page yet? It really explains a lot.
New GooFans Rules | My Addins
Error transforming res/islands/island2.xml.xsl:
could not compile stylesheet.
Because writing signatures is too mainstream
Means there's a syntax error someplace in the XSL. Paste the XSL file between <code> and </code> tags so we can look at it and see what's wrong.
IRC | Chapter Tutorial | Reference Guide
But wait... I think i know what is wrong... Just in case here is my code:
But, since i made it on text edit, it might be the problem. How do you create xsl files? (i cannot save as xsl)
Because writing signatures is too mainstream
Just rename the file to island2.xml.xsl. Make sure that you can see file extensions though. If you don't know how to look it up on Google, I don't know which OS you're using.
New GooFans Rules | My Addins
That is what i did.... But did you find ay problems in the code? Anyways... My Safari (the default app for opening .xsl files) could open your island2, but not mine.
Because writing signatures is too mainstream
Maybe it's the typo here:
<xsl:attribute name="name">Radioacitve Chaoter</xsl:attribute>
It says Chaoter not Chapter.
Is there a folder in the compile root of your goomod called RDChapter1 including RDChapter1.level.xml; RDChapter1.scene.xml and RDChapter1.resrc.xml?
Do you have your levelnames and leveltexts defined in the text.xml?
It should look something like:
...
But I think people might want to have a nice and shiny example in a sample so they could just fill in their levels and other attributes.
edit: err, why didn't I use the edit button? Merged. -AP
on the run | keep on running | two-stroke-engine
One other thing which wouldn't stop it from working but which is really annoying: resource names, including text strings, should be in ALL CAPITAL LETTERS. It just makes it easier to debug.
Also, are you sure that encoding matches what you actually used? Switch to UTF-8 just to be safe, and see if that works. (Force the file itself to switch by adding in a widechar or something.)
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
It should look something like:
That is confusing...... Well, as for the rest, yes my island "level" IS called RDChapter1. That is the levelname.
Because writing signatures is too mainstream
Is there a file called text.xml in your goomod? If yes open it and check if there are those two lines for each level? If not create file called text.xml.
on the run | keep on running | two-stroke-engine
What i get form puggosoy's .xsl
What my code is:
What the..?
Because writing signatures is too mainstream
Not the island2.xml.xsl but the text.xml. It should be where the override, compile and merge folder is.
on the run | keep on running | two-stroke-engine
No, no! we typed them at the same time. that is what i hav for text.xml after you told me to change it. is that ok
EDIT:
You know, i guess i might have to be walked through the whole process. But only once. The same as with custom pipes, it is only hard when you do not know how to do it - when ou learn you can do it a million times.
Because writing signatures is too mainstream
Looks good, then. Have you changed the text in the island XSL? It's correct in the text.xml, but it needs to match.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Now this is my island2.xml:
There. Is that good? It does match with the text.xml too!
Because writing signatures is too mainstream
It also has to match with the level folders.
on the run | keep on running | two-stroke-engine
Good point. Are your levels called "RDLevel1", "RDLevel2", and "RDLevel3", exactly?
And do you have a legal map "RDChapter1"?
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Yep. The level folder names match.
Because writing signatures is too mainstream
Ok then. Does it work now?
If not what is your addin.xml like?
on the run | keep on running | two-stroke-engine
Wait a second, i am not doen with making all the levels into the goomod. I need to add all the levels to the addin.xml, and make sure that the names and the ocd's and stuff match. I will tell you when i am done.
Because writing signatures is too mainstream
No no, the levels must not be in the addin.xml. You define the name and text in text.xml and ocd and stuff in island2.xml.xsl.
Take a look at puggsoys addin.xml.
Note the type, it's mod not level.
on the run | keep on running | two-stroke-engine
Could not compile stylesheet. could you possibly save this as an xsl for me?
It seems like every time i change the extension it changes the whole file.
PLUS as i said....
What my code is:
What the..?
Why is that?
Because writing signatures is too mainstream
I use pspad editor for making xml and xsl files. http://www.pspad.com/en/download.php
Don't worry it's free.
And why is what, the difference between your and puggsoys xsl file?
as said before puggsoy used DavidC' xml diff tool. There are many ways with xsl to get the same result.
on the run | keep on running | two-stroke-engine