Page 1 of 1

How edit screensaver text ?

Posted: Wed Apr 08, 2015 7:18 am
by Knight110
hi
i want change screensaver text , how can i do that ?
i download source code and saw @SS.ASM file.
how change it ?
tnx

Re: How edit screensaver text ?

Posted: Tue Apr 14, 2015 12:00 pm
by Gluk
Show us code lines you don't understand

Re: How edit screensaver text ?

Posted: Wed Apr 15, 2015 11:15 pm
by Knight110
i don't know assembly language : (

this is screensaver :
http://www.uppic.com/uploads/14291288161.png
i think that it's the text of macros.inc
i want change it , so i changed the macros.inc address in @SS.ASM with a txt file.
but i faced error when compile it.
i want change screensaver text with my text , how should i do that ?

tnx

Re: How edit screensaver text ?

Posted: Thu Apr 16, 2015 9:49 am
by Yason
Knight110 wrote: i think that it's the text of macros.inc
tnx
Yes it is. :)

Code: Select all

fileinfo:
	dd 0
	dd 0
	dd 0
.size:	dd 0
.point:	dd 0
	db '/sys/macros.inc',0   ; <--- path to file. 
Knight110 wrote: i want change it , so i changed the macros.inc address in @SS.ASM with a txt file.
but i faced error when compile it.
i want change screensaver text with my text , how should i do that ?

tnx
Try to change path to your text file in line 595. :wink:

Example:

Code: Select all

db '/my_path/my_file.txt',0

Re: How edit screensaver text ?

Posted: Sat Apr 18, 2015 2:22 pm
by Knight110
Yason wrote:
Knight110 wrote: i think that it's the text of macros.inc
tnx
Yes it is. :)

Code: Select all

fileinfo:
	dd 0
	dd 0
	dd 0
.size:	dd 0
.point:	dd 0
	db '/sys/macros.inc',0   ; <--- path to file. 
Knight110 wrote: i want change it , so i changed the macros.inc address in @SS.ASM with a txt file.
but i faced error when compile it.
i want change screensaver text with my text , how should i do that ?

tnx
Try to change path to your text file in line 595. :wink:

Example:

Code: Select all

db '/my_path/my_file.txt',0
i couldn't find these lines :(
"macros.inc" just one time come in @SS.ASM and it's :

Code: Select all

used_memory = 0x10000

   db     'MENUET01'     ; 8 byte id
   dd     0x01           ; header version
   dd     START          ; start of code
   dd     I_END          ; size of image
   dd     used_memory    ; memory for app
   dd     used_memory    ; esp
   dd     0x0 , 0x0      ; I_Param , I_Icon

include   'lang.inc'
include   '..\..\macros.inc'
purge mov       ; decrease kpack'ed size
in addition it have just 501 lines :(

Re: How edit screensaver text ?

Posted: Sat Apr 18, 2015 3:10 pm
by Wildwest
http://websvn.kolibrios.org/filedetails ... F%40ss.asm

check out the end of file and try to change these strings

buttext db 'SHOW',0
flag db 'V '
title db 'SCREENSAVER SETUP',0
setuptext db 'TYPE: < >',0
db 'TIME: < > MINUTES NEVER',0
typetext db 'BLACK SCREENCOLOR LINES ASSEMBLER '

Re: How edit screensaver text ?

Posted: Sat Apr 18, 2015 3:53 pm
by Yason
Knight110 wrote:i couldn't find these lines :(
"macros.inc" just one time come in @SS.ASM and it's :
in addition it have just 501 lines :(
Oh no. you do not understand! :shock: These strings are in the file @SS.ASM, at the very end (line 595).
Thus, you will be able to display on the screen, any text file that you want. Then compile the file and drop into an kolibri.img image with your text file. :)

Or just change text in macros.inc. Then no rebuild is necessary. 8)