SphereServer BugTracker - SphereServer | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0001502 | SphereServer | executable - generic | public | 25-08-08 17:35 | 22-04-14 18:26 |
| Reporter | dzhony | ||||
| Assigned To | Ben | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Nightly Version | 08-02-2008 | ||||
| Experimental Flags | New_Triggers, Size_Optimise, DamageTools, NPCAct_Triggers | ||||
| Option Flags | Command_Sysmsgs, OSIMultiSight, NoItemNaming, NoHouseMuteSpeech, NoPrefix, DyeType | ||||
| Internal Build Number | |||||
| Summary | 0001502: A few string-handling suggestions - dAsc, Locals and Tags, and Charset Converting | ||||
| Description | Well, where to start :) 1) dAsc <string> returns only the first char evaluated ... for example: Asc abc returns 061 062 063, but dAsc abc returns 97. I suggest using something like this, instead of original dAsc: [Function f_asc] Local.Remaining = "<Asc <Args>>" Local.First = <StrArg <Local.Remaining>> Local.Return = "x,<Eval <Local.First>>" While !<IsEmpty <StrEat <Local.Remaining>>> Local.Remaining = <StrEat <Local.Remaining>> Local.First = <StrArg <Local.Remaining>> Local.Return .= " <Eval <Local.First>>" EndWhile Return <StrEat <Local.Return>> 2) Locals and Tags ... it seems impossible to store a space char ' ' (asc 020) in local. Sphere automatically evaluates locals, so, instead of ' ' there is '00'. I agree, it is a feature and such change would cause serious troubles on many shards running on 56b ... but, maybe it could be solved by adding something like local, but built for chars and string - maybe SLocal, or something like that :) Single space char can not be stored even in Tag, using syntax .tag.something=" " ... it is also evaluated -> "00". The only way how to store ' ' is setting the local value to "x x" and later using StrAsc to get the middle char of this string. 3) Charset converting ... As a member of Czech UO shard GM team, I have to deal with differencies between UTF and ANSI. It seems as if Sphere was incorrectly interpreting commands (using the latest client versions 6.0.x) written in UTF encoding ... Unicode speech is no problem, but running a unicode-named function, or using unicode chars (?????? etc.) in function arguments, which I'm entering directly in the client command line, seems to be a problem. Would it be possible to convert such chars correctly, with EF_UNICODE turned on? - The same issue is the use of unicode chars in the console window, telnet console, or log file ... the same problem, incorrect conversion. | ||||
| Steps To Reproduce | |||||
| Additional Information | f_charsets.scp included - contains functions for converting between ANSI and UTF ... Scripted solution is possible, but built-in solution should be faster, shouldn't it? :) | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=11&type=bug | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 25-08-08 17:35 | dzhony | New Issue | |||
| 25-08-08 17:35 | dzhony | File Added: f_charsets.scp | |||
| 25-08-08 17:35 | dzhony | Nightly Version | => 08-02-2008 | ||
| 25-08-08 17:35 | dzhony | Experimental Flags | => New_Triggers, Size_Optimise, DamageTools, NPCAct_Triggers | ||
| 25-08-08 17:35 | dzhony | Option Flags | => Command_Sysmsgs, OSIMultiSight, NoItemNaming, NoHouseMuteSpeech, NoPrefix, DyeType | ||
| 25-08-08 17:43 | dzhony | Note Added: 0000071 | |||
| 04-09-08 11:48 | dzhony | Note Added: 0000083 | |||
| 09-09-08 10:25 | dzhony | Note Added: 0000087 | |||
| 09-09-08 22:58 | dzhony | Note Added: 0000089 | |||
| 15-09-08 17:47 | dzhony | Note Added: 0000092 | |||
| 22-04-14 18:26 | Ben | Note Added: 0002077 | |||
| 22-04-14 18:26 | Ben | Status | new => closed | ||
| 22-04-14 18:26 | Ben | Assigned To | => Ben | ||
| 22-04-14 18:26 | Ben | Resolution | open => no change required | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||