r/InteractiveCYOA • u/_pasadena Creator • Aug 08 '23
Discussion Complete Interactive CYOA Creator Tutorial
Link: https://icctutorial.pages.dev
This is a tutorial and guide for the Interactive CYOA Creator by MeanDelay. Whether you wanted to learn how to use the creator as a beginner, are stuck on something, or just need a refresher, this guide hopes to cover all of it!
Note: This tutorial is still in development (on stable version 0.17.0 as of writing this). The Mechanics section is (almost) completely done, but the tutorial as a whole is not yet complete. The only things that really need work are the Styling section and the Reference.
Suggestions are, of course, welcome, and as this project is open-source, anyone is free to contribute :)
View all comments
Show parent comment
3
u/_pasadena Creator Aug 31 '23
Thanks for the notes!
The reference does talk about using inline CSS to style text in regards to colour, but not necessarily how to style the font size and stuff (though I do link to many CSS tutorials). I'll have to add that.
I had put a complete list of allowed HTML tags and attributes and allowed styles (which isn't a lot to be honest) in the Reference, and also have supplied a modded viewer that enables hyperlinking and sort of explains how it works (thus anyone can go into the same file, look for the same lines of code and add their own HTML tags, attributes, and styles to allow), but, admittedly, I don't have an exact guide on how to do it. So that is something I will have to add.
The reference shows how to allow and place hyperlinks and change the colour of import and backpack buttons, but it doesn't have the stuff with fonts and text gradients (which is ironic lol, given that I made the example provided) or custom background images. I'll also have to add those too, thanks.
There are a couple of problems with that… First, the creator was written in Vue (a framework that helps with interactivity and stuff (vast understatement)) and packaged via Webpack, which essentially means it was obfuscated and 'compiled' from Vue into nigh-unreadable JavaScript (formatting it with prettier helps, though). Second, it would be illegal to take that code and host it, as it wasn't explicitly licensed, and thus fully belongs to MeanDelay until such a time that it is released into open-source proper. There's also the fact that it was written with now-outdated and unsupported libraries, such as Vue 2, Vuetify 2, Vuex (for state), etc.
With that said, there are ways to retrieve the source code beyond that. You can look into the dev tools -> debugger and open the Webpack folder, and it should have unobfuscated the code (I even wrote a script to automate this process and save it on your machine), but you still wouldn't legally be able to derive anything directly from it. Not only that, but (despite trying to) I couldn't find a way to build and run the received code, as parts of the unobfuscated code weren't even unobfuscated properly, unfortunately.
What is legal, though, is using the source code as inspiration for your own creator (as long as you don't directly copy), as I have tried to do, but you'd still have to code it from the ground up. You're right about it taking effort though, but it's not exactly as simple as opening up the viewer and copying and pasting.
Still, thank you for the feedback, I will have to add the stuff mentioned to the reference.