dworkin / dgd

Dworkin's Game Driver, an object-oriented database management system originally used to run MUDs.
https://www.dworkin.nl/dgd/
GNU Affero General Public License v3.0
103 stars 31 forks source link

separate issue #16

Closed seikichin closed 5 years ago

seikichin commented 5 years ago

does dgd support text block for example£º with fluffos I can draw a mice like this: set("long", @LONG [37m ,;;;.;,;;;;,, _ .;' ''( );. .;' o,'. ) . . :; :: ~ ~( '';,,;~ : '. ,,, '....; ', ' .. ',,,' ; ,, ,;;;' [0m LONG ); between @LONG and LONG is the text mice

seikichin commented 5 years ago

[37m
,;;;.;,;;;;,, _ .;' ''( );. .;' o,'. ; ) . . ; :; :: ~ ~( ~'';,,;\~~ : '. ,,, \'....; ', ' ;.. ',,,' ; ;,, ,;;;' [0

seikichin commented 5 years ago

something like ASCII art

dworkin commented 5 years ago

DGD of course supports ASCII art, but it doesn't support @long - LONG test blocks. You can break up strings with a backslash:

set_long("long", "\
         ,;;;.;,;;;;,,   _\n\
      .;'             ''( );.\n\
    .;'                    o,'.\n\
         )       .  .        :;\n\
   ::       ~     ~( ~'';,,;\~~\n\
  : '. ,,, \'....; ',\n\
 '        ..     ',,,'\n\
;           ,,\n\
,;;;'\n\
");
seikichin commented 5 years ago

thank you for the reply

---Original--- From: "Felix A. Croes"notifications@github.com Date: Sun, Aug 4, 2019 20:16 PM To: "dworkin/dgd"dgd@noreply.github.com; Cc: "Author"author@noreply.github.com;"seikichin"seikichin@qq.com; Subject: Re: [dworkin/dgd] separate issue (#16)

DGD of course supports ASCII art, but it doesn't support @long - LONG test blocks. You can break up strings with a backslash: setlong("long", "\ ,;;;.;,;;;;,, \n\ .;' ''( );.\n\ .;' o,'.\n\ ) . . :;\n\ :: ~ ~( ~'';,,;\~~\n\ : '. ,,, \'....; ',\n\ ' .. ',,,'\n\ ; ,,\n\ ,;;;'\n\ ");
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

seikichin commented 5 years ago

I use gurblib and I got an error: Compiler error: Sun Aug 4 20:55:55 2019:smaug:/domains/test/rooms/mice_room2.c, 8: unterminated unterminated string illegal character: '.' syntax error illegal character: '\'

seikichin commented 5 years ago

include "../../domain.h"

inherit "/std/room"; void setup(void) {

set_short("mice room" ); setlong("\ ,;;;.;,;;;;,, \n\ .;' ''( );.\n\ .;' o,'.\n\ ) . . :;\n\ :: ~ ~( ~'';,,;\~~\n\ : '. ,,, \'....; ',\n\ ' .. ',,,'\n\ ; ,,\n\ ,;;;'\n\ "); set_exits((["down": DIR + "/mice_room3",]) );

}
dworkin commented 5 years ago

You have to use a backslash at the end of the lines, exactly as in my example.

seikichin commented 5 years ago

I copy your example and it doesn't work

---Original--- From: "Felix A. Croes"notifications@github.com Date: Mon, Aug 5, 2019 03:30 AM To: "dworkin/dgd"dgd@noreply.github.com; Cc: "Author"author@noreply.github.com;"seikichin"seikichin@qq.com; Subject: Re: [dworkin/dgd] separate issue (#16)

You have to use a backslash at the end of the lines, exactly as in my example.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Blain20 commented 5 years ago

Change the line endings for your source file to Unix style.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Sunday, August 4, 2019 5:45 PM, seikichin notifications@github.com wrote:

I copy your example and it doesn't work

---Original--- From: "Felix A. Croes"notifications@github.com Date: Mon, Aug 5, 2019 03:30 AM To: "dworkin/dgd"dgd@noreply.github.com; Cc: "Author"author@noreply.github.com;"seikichin"seikichin@qq.com; Subject: Re: [dworkin/dgd] separate issue (#16)

You have to use a backslash at the end of the lines, exactly as in my example.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

seikichin commented 5 years ago

Good it works !thank you!

---Original--- From: "Blain20"notifications@github.com Date: Mon, Aug 5, 2019 11:40 AM To: "dworkin/dgd"dgd@noreply.github.com; Cc: "Author"author@noreply.github.com;"seikichin"seikichin@qq.com; Subject: Re: [dworkin/dgd] separate issue (#16)

Change the line endings for your source file to Unix style.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Sunday, August 4, 2019 5:45 PM, seikichin notifications@github.com wrote:

I copy your example and it doesn't work

---Original--- From: "Felix A. Croes"notifications@github.com Date: Mon, Aug 5, 2019 03:30 AM To: "dworkin/dgd"dgd@noreply.github.com; Cc: "Author"author@noreply.github.com;"seikichin"seikichin@qq.com; Subject: Re: [dworkin/dgd] separate issue (#16)

You have to use a backslash at the end of the lines, exactly as in my example.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.