Coordinates instead of Room Number

More
1 month 4 days ago #10095 by kogan
Coordinates instead of Room Number was created by kogan
Hi, is there any snippet which replaces the room-numbers to coordinate-system?
Like Room 3001 will be 30:01 or something? The goal is to have more than 100 rooms in a zone.

Thanks
 

Please Log in or Create an account to join the conversation.

  • zusuk
  • zusuk's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • LuminariMUD Developer
More
1 month 4 days ago #10096 by zusuk
Replied by zusuk on topic Coordinates instead of Room Number
You don't need to change the system to make zones bigger, just "zedit new" with a room range that is larger than 100 :)

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

More
1 month 2 days ago #10099 by Parnassus
Replied by Parnassus on topic Coordinates instead of Room Number
I tried that once and although I can't remember how it went all odd, I remember thinking, "Okay, not doing that again." I didn't think that whatever happened would happen because any other code base I've worked with allows more than 100 numbers with 100 being simply a convenient number. Sorry that I can't remember but I thought it wasn't worth the trouble. Other people may find that whatever it is doesn't bother them.

Please Log in or Create an account to join the conversation.

  • zusuk
  • zusuk's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • LuminariMUD Developer
More
1 month 2 days ago #10102 by zusuk
Replied by zusuk on topic Coordinates instead of Room Number
I don't think we have made any (directly relevant) modifications to our code that would make us different as far as maximum rooms in a single zone.  And that being said, we have probably a half-dozen zones that are around 500 rooms.  You have to be careful not to create two zones that overlap, besides that we haven't experienced any issues.

If you have your heart set on a dynamically generated co-ordinate wilderness system, you can find it on our codebase (link in signature).

Best,
Mosheh (Zusuk)

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #10106 by cunning
Replied by cunning on topic Coordinates instead of Room Number
I agree with Zusuk. We only changed the struct.h unsigned interger to get larger. other then that, we have several zones over 100 rooms. You can do it in many ways, create zones up to 100 rooms, then inter-connect into another zone number. Just dont overlap as Zusuk stated. I just create zones that can handle 500 or 1000 rooms, and go from there.

#ifdef UINT_MAX
#undef UINT_MAX
#define UINT_MAX 42949672 - > My compiler could not replicate this so i had to hard define it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds