Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user rh70 ! (Registered 2025-02-20) You are not logged in - nap
CSDb User Forums


Forums > CSDb Bug Reports > Text cut off and some of it is repeated
2006-08-11 20:54
Slammer

Registered: Feb 2004
Posts: 417
Text cut off and some of it is repeated

Hello

Got a bug while posting in the thread bitmap display/extraction in the coding forum. It cutted the last of my text and repteated some other. Here is the situation that lead to the error:

1. I started writing the text but was interupted
2. Came back, finished writing and submitted, but this then the session was timed out.
3. I actually was prepared for this so I had copied the message into the clipboard. So now a made a new messages and posted the text again. However, the posted text was fucked up and even though I tried to edit it, it wont get right..
2006-08-11 20:55
Slammer

Registered: Feb 2004
Posts: 417
Im trying to post the text again here. My guess is that it will work now since there is no previous session timeout:

Another easy way to convert a charset is to write your own converter. In Kick Assembler this can be done in only a couple of lines. Here is how to do:


1) First organize your letters in the right order according to the PETSCII format in a grahics program like photoshop and saved it in the file 2x2char.gif. See it here http://www.6581.dk/2x2char.gif

2) Write the converter in Kick Assembler:

.pc = $3800
.var charsetPic = LoadPicture("2x2char.gif", List().add($000000, $ffffff))
.function picToCharset(byteNo, picture) {
.var ypos = [byteNo&7] + 8*[[byteNo>>9]&1]
.var xpos = 2*[[byteNo>>3]&$3f] + [[byteNo>>10]&1]
.return picture.getSinglecolorByte(xpos,ypos)
}
.fill $800, picToCharset(i,charsetPic)

3) Now assemble the program and you now have a converted charset that can be used in a scroll as it's done here http://www.6581.dk/2x2scroll.prg

If you insist on converting from some kind of c64 bitmap format instead of gif then use the LoadBinary function instead of the LoadPicture function (Fx. LoadBinary("koalapic.prg", BF_KOALA)) and access the bitmap data via. the getBitmap function.




2006-08-11 20:56
Slammer

Registered: Feb 2004
Posts: 417
Well. My guess was wrong.. If you give me an email address, I can email the text that makes the board go crazy..
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
E$G/HF ⭐ 7
Mike
LordCrass
CA$H/TRiAD
Brataccas/HF
JEZ
rambo/Therapy/ Resou..
radius75
Acidchild/Padua
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 Codeboys & Endians  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.6)
5 Mojo  (9.6)
6 Edge of Disgrace  (9.6)
7 Uncensored  (9.6)
8 Comaland 100%  (9.6)
9 Wonderland XIV  (9.6)
10 What Is The Matrix 2  (9.6)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Libertongo  (9.5)
7 Ten  (9.5)
8 Dawnfall V1.1  (9.5)
9 Rainbow Connection  (9.5)
10 Onscreen 5k  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Performers  (9.3)
4 Censor Design  (9.2)
5 Triad  (9.2)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Shine  (9.4)
5 Facet  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.068 sec.