Search found 23 matches
- Wed Jan 01, 2014 4:01 pm
- Forum: Mudlet Development
- Topic: getRoomIDbyHash feature request
- Replies: 12
- Views: 12383
Re: getRoomIDbyHash feature request
Hashes, by definition, are not guaranteed to be unique. Collisions happen. It appears that getRoomIDbyHash / setRoomIDbyHash were intended for use with unique values. That makes them function like unique keys rather than hashes. Which is where the request I made comes in. Give us at least the option...
- Mon Dec 30, 2013 7:39 pm
- Forum: Help Forum
- Topic: Alias command variable
- Replies: 11
- Views: 8213
Re: Alias command variable
Which would be why I'm suggesting things that would drastically reduce the amount of work I need to do without requiring much effort, and without greatly (or likely at all) impact other users. Thank you Jor'Mox for your suggestions. While I'm afraid I disagree with your assessment of what my project...
- Mon Dec 30, 2013 6:26 pm
- Forum: Help Forum
- Topic: Alias command variable
- Replies: 11
- Views: 8213
Re: Alias command variable
As a side note, there is also a much easier way to handle the | separator issue, using a simple alias in combination with good pattern matching etiquette for other aliases. Have one alias that matches anything with a | in it. Split the command using | as a delimiter, and pass the trimmed results th...
- Mon Dec 30, 2013 6:22 pm
- Forum: Help Forum
- Topic: Alias command variable
- Replies: 11
- Views: 8213
Re: Alias command variable
Ok, this is all how the MUD works, so I don't have any control over this: 1) I need to process prefixes: * # and $ which when leading a string, cause special behavior. The whitespace rules for each of these prefixes are annoying different (for example, " $stand" doesn't work, but " #s...
- Mon Dec 30, 2013 5:32 pm
- Forum: Help Forum
- Topic: Alias command variable
- Replies: 11
- Views: 8213
Re: Alias command variable
Sadly, for what I'm doing I basically need to ignore aliases and code an entire alias system in Lua just because of this. Which is frustrating because inserting "data = Lua->get_lua_string( lua_command_string );" above line 283 in AliasUnit.cpp (anywhere in that block) should solve this is...
- Mon Dec 30, 2013 3:06 pm
- Forum: Help Forum
- Topic: Alias command variable
- Replies: 11
- Views: 8213
Re: Alias command variable
That's really unfortunate. I don't really find this ideal for aliases at all.
- Mon Dec 30, 2013 2:38 pm
- Forum: Mudlet Development
- Topic: getRoomIDbyHash feature request
- Replies: 12
- Views: 12383
Re: getRoomIDbyHash feature request
I'm currently using SHA2 on room name + description and even with bitops in pure Lua, I don't have any speed issues despite hashing every room I enter. Which reminds me, a reverse hash lookup getHashbyRoomID would be helpful in a few spots.
- Sun Dec 29, 2013 7:40 pm
- Forum: Help Forum
- Topic: Alias command variable
- Replies: 11
- Views: 8213
Alias command variable
I'm having an issue with aliases that might not be intended. First, from the Mudlet Wiki on the Alias Engine (emphasis mine): The initial user command is being held in the Lua variable command. When this value changes within the alias unit processing chain, the initial user input that the aliases wo...
- Sun Dec 29, 2013 5:38 pm
- Forum: Help Forum
- Topic: MapLabel hit box bug
- Replies: 1
- Views: 2125
MapLabel hit box bug
I'm having an issue with strange hit boxes on map labels. I create a label with the following: createMapLabel(2, "The Eastern Road", 5, -11, 0, 255, 255, 255, 170, 0, 0, 0, 10) And the label appears, but its hit box is messed up. It goes from the top left corner of the label to the top lef...
- Fri Dec 27, 2013 10:23 pm
- Forum: General Forum
- Topic: Alias request: prefix/suffix, /g and matches[]
- Replies: 10
- Views: 10747
Re: Alias request: prefix/suffix, /g and matches[]
Ok, the MUD itself processes pipes as command separators. This isn't a feature I'm adding, it's all coming from the MUD. So if I send "n|n|e|d" over even a basic telnet client, the MUD will queue up 4 movement commands. Because my scripting needs to know exactly what commands are being exe...