Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
module:avatars [2018/03/01 12:11] – Links to util:binkit changed to module:binkit digital man | module:avatars [2019/02/08 04:34] – [PabloDraw] typos digital man |
---|
| ''[[dir:text]]/menu/main.asc'' | Updated to include new ''/A'' (change avatar) main menu option | | | ''[[dir:text]]/menu/main.asc'' | Updated to include new ''/A'' (change avatar) main menu option | |
| ''[[dir:exec]]/default.src'' | Updated to include new ''/A'' (change avatar) main menu option | | | ''[[dir:exec]]/default.src'' | Updated to include new ''/A'' (change avatar) main menu option | |
| ''[[dir:exec]]/default.bin'' | Generated by compiling ''default.src'' using [[binkit]] | | | ''[[dir:exec]]/default.bin'' | Generated by compiling ''default.src'' using [[util:Baja]] | |
| ''[[dir:exec]]/logon.js'' | Updated to display user's avatar during logon sequence | | | ''[[dir:exec]]/logon.js'' | Updated to display user's avatar during logon sequence | |
| ''[[dir:exec]]/newuser.js'' | Updated to set a new user's default avatar, when configured in ''modopts.ini'' | | | ''[[dir:exec]]/newuser.js'' | Updated to set a new user's default avatar, when configured in ''modopts.ini'' | |
From a command prompt, run ''jsexec avatars install'' | From a command prompt, run ''jsexec avatars install'' |
| |
This step will perform all the necessary [[binkit]] changes and optional ''[[config:modopts.ini]]'' changes detailed later in this article. | This step will perform all the necessary [[util:SCFG]] changes and optional ''[[config:modopts.ini]]'' changes detailed later in this article. |
| |
==== Step 3 ==== | ==== Step 3 ==== |
**Optional:** | **Optional:** |
| |
Update your command shells to either execute ''avatar_chooser.js'' directly (using Baja ''exec_bin'' or JS ''bbs.exec'' or ''load'' functions) **or** use Baja ''exec_xtrn'' or JS ''bbs.exec_xtrn'' to execute the module via internal code (e.g. ''AVATCHOO''). This [[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/exec/default.src?r1=1.18&r2=1.19|small change]] was already made in the "Synchronet Classic" command shell: ''[[dir:exec]]/default.src''. You will need to recompile ''default.src'' to ''default.bin'' using [[binkit]] (in the ''[[dir:exec]]'' directory): | Update your command shells to either execute ''avatar_chooser.js'' directly (using Baja ''exec_bin'' or JS ''bbs.exec'' or ''load'' functions) **or** use Baja ''exec_xtrn'' or JS ''bbs.exec_xtrn'' to execute the module via internal code (e.g. ''AVATCHOO''). This [[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/exec/default.src?r1=1.18&r2=1.19|small change]] was already made in the "Synchronet Classic" command shell: ''[[dir:exec]]/default.src''. You will need to recompile ''default.src'' to ''default.bin'' using [[util:Baja]] (in the ''[[dir:exec]]'' directory): |
baja default.src | baja default.src |
| |
==== AVATCHOO ==== | ==== AVATCHOO ==== |
| |
The //Avatar Chooser// script (by echicken) configured in [[binkit]]->External Programs->Online Programs->Main: | The //Avatar Chooser// script (by echicken) configured in [[util:SCFG]]->External Programs->Online Programs->Main: |
<file> | <file> |
╔══════════════════════════════════════════════════════════╗ | ╔══════════════════════════════════════════════════════════╗ |
| |
==== AVAT-IN ==== | ==== AVAT-IN ==== |
Create a timed event to import network user avatars and shared avatar collections via [[binkit]]->External Programs->Timed Events: | Create a timed event to import network user avatars and shared avatar collections via [[util:SCFG]]->External Programs->Timed Events: |
<file> | <file> |
╔════════════════════════════════════════════════════════════════════╗ | ╔════════════════════════════════════════════════════════════════════╗ |
| |
==== AVAT-OUT ==== | ==== AVAT-OUT ==== |
Create a timed event to export local users' avatars to message networks via [[binkit]]->External Programs->Timed Events: | Create a timed event to export local users' avatars to message networks via [[util:SCFG]]->External Programs->Timed Events: |
<file> | <file> |
╔════════════════════════════════════════════════════════════════════╗ | ╔════════════════════════════════════════════════════════════════════╗ |
</file> | </file> |
| |
This value can be set/changed with the ''avatar.js'' ''newuser'' command. For example, using [[binkit]]: | This value can be set/changed with the ''avatar.js'' ''newuser'' command. For example, using [[util:JSexec]]: |
jsexec avatars newuser=/sbbs/text/avatars/silhouettes.bin | jsexec avatars newuser=/sbbs/text/avatars/silhouettes.bin |
| |
- PabloDraw defaults to 80 columns width, so you may need to change the width to 10 columns manually | - PabloDraw defaults to 80 columns width, so you may need to change the width to 10 columns manually |
- PabloDraw defaults to enabling iCE colors, so you may want to disable this to be sure you don't accidentally include the BLINK attribute | - PabloDraw defaults to enabling iCE colors, so you may want to disable this to be sure you don't accidentally include the BLINK attribute |
- PabloDraw truncates (chops-off) the last line of ''.bin'' files when saving them, so you'll need to add an extra line (e.g. of ''X''s) before saving, and repeat this step if you close and re-open the file in PabloDraw | - PabloDraw truncates (chops-off) the last row of ''.bin'' files when saving them, so you'll need to add an extra line (e.g. of ''X'''s) before saving, and repeat this step if you close and re-open the file in PabloDraw |
- PabloDraw has issues creating the SAUCE comment block correctly (at last, on Windows) - instead of an array of 64 character fields, it creates a single \n-delimited field, of up to 64 characters | - PabloDraw has issues creating the SAUCE comment block correctly (at least, on Windows) - instead of an array of 64 character fields, it creates a //single// \n-delimited field, of up to 64 characters |
- You can use ''jsexec sauce -e <filename>'' to edit SAUCE records of files and work around some of these issues | - You can use ''jsexec sauce -e <filename>'' to edit SAUCE records of files and work around some of these issues |
| |
If you use the ''-share'' command-line option along with the ''export'' command, then any files matching the pattern: | If you use the ''-share'' command-line option along with the ''export'' command, then any files matching the pattern: |
''[[dir:text]]/avatars///<QWK-ID>//.*.bin'' will be automatically exported whenever the ''avatars.js'' ''export'' command is used. | ''[[dir:text]]/avatars///<QWK-ID>//.*.bin'' will be automatically exported whenever the ''avatars.js'' ''export'' command is used. |
Where ''//<QWK-ID//'' is the local system's QWK-ID ([[binkit]]->Message Options->BBS ID) value, in uppercase. | Where ''//<QWK-ID//'' is the local system's QWK-ID ([[util:SCFG]]->Message Options->BBS ID) value, in uppercase. |
| |
:!: **Note:** | :!: **Note:** |
===== See Also ===== | ===== See Also ===== |
* [[:module:|Modules]] | * [[:module:|Modules]] |
* [[binkit]] | * [[:util:JSexec]] |
* [[https://bbs.electronicchicken.com/?page=More/avatar-gallery.xjs|Web-based Avatar Gallery]] | * [[https://bbs.electronicchicken.com/?page=More/avatar-gallery.xjs|Web-based Avatar Gallery]] |
| |
{{tag>ansi avatar}} | {{tag>ansi avatar}} |
| |