Page 13 of 13

Re: Web Based Adventure (WBA)

PostPosted: Sun, 17Feb05 09:25
by SoulMate
sylakone2 wrote:Hi Soul.

I am not sure why this has been happening but for some reason after the last few updates My text has gone strange.
See below pic.

https://mega.nz/#!l00hmA5J!UBMbMcNuQHTAMJrIO3CKS82I9fDYmt7j0Fc5pmutbHc

Any ideas

Cheers

Sy


1, Did you replace index.html / debug.html / build.html with the newer versions?
2. What browser + OS are you using?
3. Can you send my your game, then i'll try to figure it out.

Re: Web Based Adventure (WBA)

PostPosted: Sun, 17Feb05 11:08
by SoulMate
Update V2.7.1
- Fixed variable debug sidebar

https://mega.nz/#!uQEiQIrb!drAd5KOUg1Js ... V5OqEMfZOY

Re: Web Based Adventure (WBA)

PostPosted: Mon, 17Feb06 10:38
by sylakone2
SoulMate wrote:
sylakone2 wrote:Hi Soul.

I am not sure why this has been happening but for some reason after the last few updates My text has gone strange.
See below pic.

https://mega.nz/#!l00hmA5J!UBMbMcNuQHTAMJrIO3CKS82I9fDYmt7j0Fc5pmutbHc

Any ideas

Cheers

Sy


1, Did you replace index.html / debug.html / build.html with the newer versions?
2. What browser + OS are you using?
3. Can you send my your game, then i'll try to figure it out.


Hey Soulmate

Thanks for the response.

Yeah I basically just copied the images folder and the data.js, custom.js, custom.css and icons folder to the new version of WBA.
I am using WIN 10 and Chrome.

I will send you the build soon.

Cheers

Sy

Re: Web Based Adventure (WBA)

PostPosted: Sat, 17Feb18 10:08
by SoulMate
I didn't see your build in my inbox, let me know if i can help.

Re: Web Based Adventure (WBA)

PostPosted: Sat, 17Feb18 13:47
by SoulMate
Update V2.8
- Fixed wrong order of title texts
- Added webserver to allow data.js upload

How to Update:
- Overwrite all the files with the files in the zipfile, EXCEPT data.js, custom.js and custom.css

Note:
The build page does not work in some browsers when running on local filesystem (file:///)
Doubleclick on webserver.bat

The code is released with the MIT licence, so feel free to modify it to your needs.
https://mega.nz/#!TF1ETQaQ!zPH2DmXih036 ... FnNGl-P3I4 [V2.8]

This update allows to save data.js instantly without downloading and copy/paste the file from the downloads folder into the game folder. To make use of this new functionality, make sure Python is installed on your system.

Re: Web Based Adventure (WBA)

PostPosted: Sat, 17Feb25 15:23
by sylakone2
SoulMate wrote:I didn't see your build in my inbox, let me know if i can help.


Yeah sorry Soul.

There was a lot of dead ends when I posted that and I have not had a chance to finish those just yet.

Cheers

Sy

Re: Web Based Adventure (WBA)

PostPosted: Sat, 17Feb25 15:24
by sylakone2
SoulMate wrote:Update V2.8
- Fixed wrong order of title texts
- Added webserver to allow data.js upload

How to Update:
- Overwrite all the files with the files in the zipfile, EXCEPT data.js, custom.js and custom.css

Note:
The build page does not work in some browsers when running on local filesystem (file:///)
Doubleclick on webserver.bat

The code is released with the MIT licence, so feel free to modify it to your needs.
https://mega.nz/#!TF1ETQaQ!zPH2DmXih036 ... FnNGl-P3I4 [V2.8]

This update allows to save data.js instantly without downloading and copy/paste the file from the downloads folder into the game folder. To make use of this new functionality, make sure Python is installed on your system.


hey that link is not complete I can't dl the latest version

Cheers

Sy

Re: Web Based Adventure (WBA)

PostPosted: Sun, 17Feb26 21:55
by SoulMate
sylakone2 wrote:hey that link is not complete I can't dl the latest version

Cheers

Sy


Fixed

Re: Web Based Adventure (WBA)

PostPosted: Sun, 17Jul09 22:08
by Hakkie
Just a quick heads-up from me, I love working with this nifty tool, but I felt something is missing, maybe my fix can be of help to others.

I needed the ability to check and see if two variables are not-equal, so I've changed this part of the code (game.js):
Code: Select all
    function checkRequirement(requirement) {
        var requirementsSuccess = false,
            reqVar = readVar(requirement.variable),
            reqFunc = requirement.func,
            reqVal = getRequirementValue(requirement);
        if (reqFunc === '>' || reqFunc === '>') {
            requirementsSuccess = reqVar > reqVal;
        } else if (reqFunc === '=' || reqFunc === '==') {
            requirementsSuccess = reqVar === reqVal;
        } else if (reqFunc === '<' || reqFunc === '&lt;') {
            requirementsSuccess = reqVar < reqVal;
      // hakkie start
        } else if (reqFunc === '!=') {
            requirementsSuccess = reqVar != reqVal;
      // hakkie end
        } else {
            requirementsSuccess = false;
        }
        return requirementsSuccess;
    }


See the "// hakkie" part where I made my changes, maybe it is helpful for others (and perhaps an idea for future version?).
This allows you to use the operators ">", "<", "=" and now also "!=" and so far it seems to work as intended.

Thanks again for the tool and happy creating guys. ;)

Re: Web Based Adventure (WBA)

PostPosted: Fri, 17Jul14 11:21
by SoulMate
Thx Hakkie, i'll include that in the next version so everyone can use it.

Currently i'm working on a major build.html update (backwards compatible with the old games). When that one is finished, i'll release the new version.