Author Topic: Documentation 'how to embed WebCPC into this forum?"  (Read 2365 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
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.

  • First, write up your post and attach the file you want to showcase in webcpc. DSK, SNA and CDT files only, no ZIP!
  • Press "submit"
  • Take a look at the post you created and copy the link of the attachment
  • Edit/modify your post and add the link to the file that you just copied within your webcpc tag

The syntax of the tag is as follows:

Code: [Select]
[cpc=http://thisdomain.com/thisattachmentThis opens the applet with the attached medium


Code: [Select]
,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

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

Close the first tag

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

Code: [Select]
[/cpc]Close the tag .



End result should be something like:

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

Thats all!


Notes
  • Add some text in your post, otherwise the applet won't load
  • The small emulator output command is:

Code: [Select]
[cpcsmall=.........]CPC6128[/cpcsmall][/list]
      Where syntax is the same than for the normal applet.


  • You cannot upload files to your private server and attach it here to WebCPC (Because of JAVA security restrictions), though this will change
  • Sometimes the applet will leave residue noise after you close it. If you find this is the case, you can click into the applet and press F12 to reset it
[/list][/list]
« Last Edit: 12:07, 24 July 09 by Gryzor »
like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.118
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: Documentation 'how to embed WebCPC into this forum?"
« Reply #1 on: 12: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?
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: Documentation 'how to embed WebCPC into this forum?"
« Reply #2 on: 12:36, 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.

Quote
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?

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.
« Last Edit: 12:39, 24 July 09 by Devilmarkus »
like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.118
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: Documentation 'how to embed WebCPC into this forum?"
« Reply #3 on: 20: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...
like
0
No reactions