Author Topic: Room different from the client than in the files  (Read 2107 times)

Offline GreenSlug

  • Acquaintance
  • *
  • Posts: 2
  • .~'-'.
    • View Profile
Room different from the client than in the files
« on: June 04, 2013, 10:30:55 am »
Posted on demand from Cratylus on the <dchat>

cat from shell :
Code: [Select]
greenslug@BlckHost:~/deadsouls/lib/domains/freedom/room$ cat town_mainstreet1.c
#include <lib.h>
#include ROOMS_H
 
inherit LIB_ROOM;
 
void create() {
    room::create();
    SetAmbientLight(30);
    SetShort("Main Street");
    SetLong("Une grande rue dont le macadam est craquel�, les �gouts semblent refouler, une eau putride s'�tale sur la rue principale, d�bordant sur les trotoirs. � droite, une ruelle, au fond de laquelle brille un feu de camp.");
    SetExits( ([
        "south" : "/domains/freedom/room/start",
        "west" : "/domains/freedom/room/town_campfire",
        "north" : "/domains/freedom/room/town_mainstreet2.c",
      ]) );
 
}
void init(){
    ::init();
}

longcat from the client :

Code: [Select]
/ > about here
/domains/freedom/room/town_mainstreet1.c

#include <lib.h>
#include ROOMS_H

inherit LIB_ROOM;

void create() {
    room::create();
    SetAmbientLight(30);
    SetShort("Main Street");
    SetExits( ([
        "south" : "/domains/freedom/room/start",
        "west" : "/domains/freedom/room/town_campfire",
        "north" : "/domains/freedom/room/town_mainstreet2.c",
      ]) );

}
void init(){
    ::init();
}

/ > longcat here
#include <lib.h>
#include ROOMS_H

inherit LIB_ROOM;

void create() {
    room::create();
    SetAmbientLight(30);
    SetShort("Main Street");
    SetExits( ([
        "south" : "/domains/freedom/room/start",
        "west" : "/domains/freedom/room/town_campfire",
        "north" : "/domains/freedom/room/town_mainstreet2.c",
      ]) );

}
void init(){
    ::init();
}

What I get in game :
Code: [Select]
Main Street
===============================


 Map unavailable.
Sarish the unaccomplished is standing here.


[ Sorties: south, north, west ]

What my friend get in game :

Code: [Select]
Main Street
===============================


 Map unavailable.
Une grande rue dont le macadam est craquel, les gouts semblent refouler, une
eau putride s'tale sur la rue principale, dbordant sur les trotoirs.
droite, une ruelle, au fond de laquelle brille un feu de camp. 
First Admin GreenSlug is standing here.


[ Sorties: south, north, west ]

Offline quixadhal

  • BFF
  • ***
  • Posts: 642
    • View Profile
    • WileyMUD
Re: Room different from the client than in the files
« Reply #1 on: June 04, 2013, 06:06:39 pm »
Just to disprove a theory... Try editing your long description in the file, so it has no unicode characters.  If that works, it's safe to say that DS and/or FluffOS doesn't like UTF-8.

Offline GreenSlug

  • Acquaintance
  • *
  • Posts: 2
  • .~'-'.
    • View Profile
Re: Room different from the client than in the files
« Reply #2 on: June 05, 2013, 02:31:27 am »
Not quite sure it could be this, I've got other rooms using UTF8 characters and none of these have issues with the UTF8.
Before reading this I already had removed the room with delete though, and the newly created room are not affected by the problem. I tried copy pasting the same exact content from the file and everything works on everyside.

I'm kind of disappointed I didn't get to know what caused this, but well, I'm happy I can go on with working on my mud.
Thanks to everyone on the <dchat> for the help!