Adventure Creator original thread

Tips, techniques and tutorials about creation tools.

Re: A tool to help write "Virtual Date" games

Postby Josefus » Thu, 10Nov18 17:25

Hi Tlaero,

Thanks for your offerte to help..
check this please..

http://rapidshare.com/files/431612869/TT2.zip
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Fri, 10Nov19 09:48

Josefus, because _begin.html is in the same directory as Beginn01.html, you don't need the "files" before it.

Just change the line to:
window.location = "Beginn01.html";

and it will work.

I don't understand your second question. Can you give me more detail?

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby tlaero » Fri, 10Nov19 10:08

Ahh, I found the text file with your questions. I don't know how to do HTML in German instead of English. I see that the umlaut comes out wrong. I'll bet Arnulf can help you with that, though.

As for the question about joining the variables, here's how you'd do it.

var M1 = readVar("TM1");
var M2 = readVar("TM2");
var M3 = readVar("TM3");
var M4 = readVar("TM4");
var M5 = readVar("TM5");
var M6 = readVar("TM6");

var word = M1 + (M2 << 1) + (M3 << 2) + (M4 << 3) + (M5 << 4) + (M6 << 5);
setVar("Word", word);
outputVar("Word");

Note that in your _dumpvars.html, you used outputVar("M1") but in _begin.html you named it "TM1". The names need to match.

Also, I suggest against using _dumpvars.html. The newest version of adventurecreator (which you're already using) has a much easier way. Open _functions.js and go to the very bottom. There you'll find a line that says:

var doDebug = 0;

Set that to 1, and you'll get debug information on every page.

Now open _game.js. At the top is a dumpVars function. Put the code you want dumped in there.

Just make sure you set doDebug back to 0 before you send the game to players. (-:

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Josefus » Mon, 10Nov22 18:02

hi tlaero,

i'm very frusted.. i have noted all your instructions. But i see not a startpicture and not the site _begin.html
i have set ..dodump =1 but i see not my variables.
and the end is a farce...

if i not find the mistakes i will programmed this game without variable end ..and will beginn with Beginn01.html

test please this game...
in textfile timemMaschines.txt you can find all triggerpoints.
i don't know what i make false..

help me please

here is the link for the complett game

http://rapidshare.com/files/432436844/Timetramp.zip

thank you very mucht

Josefus
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Tue, 10Nov23 07:22

Josefus, the pictures look perfect to me in IE. I'll bet you're using Firefox, though. They won't look right there. In adventure creator you've opened both a "Foreground Image" and a "Background Image". That was a feature I did originally, which turned out to not work in Firefox. So I haven't used it since. (I should probaby remove it.) You're going to need to choose just one or the other. That will make the images look right and will make the variables start dumping correctly. Unfortunately, there's no easy way to close one or the other in AdventureCreator. You need to open an html, choose "File->CloseImages" and then File->Open Foreground Image. (Don't do the backgound). If you want to edit the code by hand, look for the line like this:



And change it to look like this:



(Delete the style.)

As for the variables, they're integers, not strings. So in _begin.html and all the other places you do setVar, it should be
setVar("TM1", 2);
not
setVar("TM1", "2");

Similarly, in the check, it should be
if (word == 0x3F)
instead of
if (word= "111111")

(Note that it's == instead of =)

Also, the next line should be:
return 1;
not
return 1";

These syntax errors are keeping your code from running.

Hope that helps.

Tlaero

User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Josefus » Wed, 10Nov24 16:29

Thank you Tlaero,

I use Mikrosoft InternetExplorer 8 under Vista.
I see now a startpicture but the background is white.
I use &.uml for german language-- it's ok
I start direct with beginn01.html from Start.html
I see the variables but the jump to the diffrent endings is not running.
debug is ok.. it is hard... i see not _beginn.html or the jump to selectTM.html
I will try a other methode to come to the different ends.

i think this is a vista-problem.
You can play this game ..start with beginn01.html and then you can go to all loops.
The story is non adult...but if you find a triggerpoint you see the adult parts from this game.
In TimeMachine.txt you can find the triggerpoints. I think this is all correct and i will bring Version__Beta03 online for all gamers.
Excuse my bad english .. i hope i find a translator for the german text to english or france.

Thanks for your help.
Josefus
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Thu, 10Nov25 11:33

Are you sure you want to start with the TM variables set to 2? That will mess up the math. You should start with them set to 0.

Can you upload your latest version? I'll take another look.

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Josefus » Thu, 10Nov25 16:27

Hi Tlaero,

Here the new link with textfile for you.

http://rapidshare.com/files/433035055/T ... etaV03.zip

I hope i can help you too to other time. That's disgrace for me that i can't find the mistakes.
I will find a other name for this game.... TimeTramp is protected.

thanks

Josefus
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Sat, 10Nov27 01:58

First: White screen on Start.html.
You have.




And it needs to be:




Just like in the adventurecreator example.

Second: Start going straight to Beginn01.html.

You can't do that. You must go to _begin.html first. _begin.html sets the initial values of the variables. If you skip _begin.html the variables will be wrong when you play the game again.

Start.html needs to go to _begin.html. _begin.html needs to set the 6 variables all to 0. Then _begin.html needs to go to Beginn01.html.

Third: the check function.
You have:
if (Word = 63)

This must be
if (word == 63)

"word" must be lower case and you must use two "=" signs.


Fourth: 6 ends.
You said that you want to go to 6 different ends. What are the values of TM1 - TM6 that you want for each end? I'll show you how to make the check then.

Fifth: The swf. Sorry, I don't know anything about programming flash.

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Josefus » Mon, 10Nov29 01:06

hi Tlaero,

Thanks for you help.
My game is 99% ready to go.
This was a File-Right-problem in Windows.
Your example-files have a other status as my files.
Click with right-mouse on this files and you can modify the status from this files .
After this operation all my problems are out.

Thanks for your help again.
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Mon, 10Nov29 11:37

Happy to help, Josefus. I'm glad you've got it working.

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby tlaero » Tue, 10Dec28 04:34

I've just uploaded a version 2.0 of Adventure Creator. This one adds a second window called "Game View" that gives you a list of the html files in your game with the relevant text in each file. Also, if you click on the bold filename text in the Game View window, it will open that file for editing in the main window.

I haven't had a chance to really put this through its paces yet, so I've left the old 1.8 version up as well. If you find any bugs in 2.0, let me know.

Note that when you first open the Game View window AdventureCreator scans through all of the files in your game and parses through them. That can take some time (depending on how many files you have) and the screen will blink a bit while it's happening. That's expected. The work to make it smoother wasn't worth the effort for a free tool. (-:

Here's the link to v2.0:
http://rapidshare.com/files/439583066/A ... reator.zip

And here's the old link to v1.8:
http://rapidshare.com/files/425649052/A ... reator.zip

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby tlaero » Mon, 11Jan17 03:22

I've been using the Game View feature on Adventure creator extensively, and it's made my life much easier. I'm comfortable removing the link to version 1.8 now. 2.0 is working fine for me.

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Norse Graphics » Wed, 11Jan19 08:16

Nice. Thanks!!
User avatar
Norse Graphics
great white shark
 
Posts: 65
Joined: Fri, 10Sep03 23:00
Location: Oslo, Norway
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Josefus » Mon, 11Jan31 19:35

Hi Tlaero,
I have a 2 little problems.
1. If i insert a new variable in _begin.html the game start not.
setvar("Conti",0);

What is wrong?

2. can i start a mediafile to begin and brake up to example at page 10 and start a new media file?
In this Tool the mediaplayer start ever the same mediafile new.
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

PreviousNext

Return to The workshop of creators

Who is online

Users browsing this forum: No registered users and 4 guests

eXTReMe Tracker