CPCWiki forum

General Category => Demos => Topic started by: Devilmarkus on 15:52, 23 July 09

Title: Documentation 'how to embed WebCPC into this forum?"
Post by: Devilmarkus on 15:52, 23 July 09
Hi guys,
I will explain you in a few words, how everybody can embed WebCPC into this forum.

First please notice:
Please use only this category to post WebCPC. The reason is that, as some people commented, it's not good to open a thread and find an unexpected applet running in there. We're trying to work around that by making the applet load on request, but there's lots of things to touch and modify...

The procedure is not the most straightforward of all, but at the moment it can't be made any easier due to the way the system stores attachments.


The syntax of the tag is as follows:

[cpc=http://thisdomain.com/thisattachment
This opens the applet with the attached medium


,myfile.basThe second parameter sets the file which should auto-run when the emu starts.
(Can also be |CPM)

Set it to none if no boot is wanted

Set it to tape if you want to boot a CDT

,1This sets the CRTC type (0 or 1)
if not set, 0 is used (default)]

Close the first tag

CPC6128This must be set: the CPC you want to emulate...
CPC464, CPC464T, CPC664, CPC6128 and PARADOS are possible.

[/cpc]Close the tag .



End result should be something like:

[cpc=http://thisdomain.com/thisattachment,myfile.bas,1]CPC6128[/cpc]

Thats all!


Notes

[cpcsmall=.........]CPC6128[/cpcsmall][/list]

[/list][/list]
Title: Re: Documentation 'how to embed WebCPC into this forum?"
Post by: Gryzor on 10:06, 24 July 09
A couple of recommendations: would it be possible to turn scanlines on by default? It looks so much better...

Also, I think that setting the machine type in-between tags is unorthodox (and certainly wrong syntax). Can you make it so that the model is set with another parameter, like the rest?
Title: Re: Documentation 'how to embed WebCPC into this forum?"
Post by: Devilmarkus on 10:36, 24 July 09
Quote from: Gryzor on 10:06, 24 July 09
A couple of recommendations: would it be possible to turn scanlines on by default? It looks so much better...

I turned them off because they need more CPU power. But I could add a parameter to enable them.

QuoteAlso, I think that setting the machine type in-between tags is unorthodox (and certainly wrong syntax). Can you make it so that the model is set with another parameter, like the rest?

This is because SMF uses the string between [...]  [/...] as parameter, too. But yes, it's possible by changing some things, and use a dummy-parameter.

....
I also coded a new floppy emulation yesterday night, so that it will be possible to use up to 4 floppy-drives.
I only need to add their parameters.
Maybe I will build a complete new tag for this.
Title: Re: Documentation 'how to embed WebCPC into this forum?"
Post by: Gryzor on 18:50, 24 July 09
Yeah, I know SMF uses the text in between as a parameter, but I think it looks like a wrong thing to do, code-wise :D Since we already have params fields within the tag, no need to have one outside them, especially when that text could be used (with some tweaking) to display, say, the title of the game...

As for scanlines, yes, you're right about CPU, maybe another param...
Powered by SMFPacks Menu Editor Mod