View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000466 | Gameplay + OpenGL | [All Projects] Feature | public | 2017-03-23 04:46 | 2017-03-29 13:30 |
Reporter | Nash | ||||
Assigned To | |||||
Priority | low | Severity | feature | Reproducibility | have not tried |
Status | resolved | Resolution | won't fix | ||
Summary | 0000466: String argument for ConsoleProcess and SendNetworkEvent | ||||
Description | I'd like to be able to pass string parameters for ConsolePorcess and SendNetworkEvent. | ||||
Tags | No tags attached. | ||||
You can work around this for the time being, with NetworkProcess. In your event handler, add a boolean. Have it check for keywords, such as Enable/DisableReception, and allow it to accept what it sends along as strings for use. Then you send a keyword to disable it which takes priority over all other words it receives. Here's an example.
Then whatever is doing the sending just does this:
|
|
You can pass a string in the event name itself and then split it away using Mid. e.g. event looks like this: "MyEventName:<data>" You can receive <data> by doing this:
|
|
Does mid go by n-1? |
|
Major Cooke: I need to pass unknown class names to my event, so I can't use your workaround. ZZYZX: will try your solution and report back if it fits my needs, thanks. |
|
That's what I did in mine. |
|
I think that sending the data encoded in the existing string is the best option here, the network protocol is really not the place to turn loose with parameters. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-23 04:46 | Nash | New Issue | |
2017-03-24 12:15 | Major Cooke | Note Added: 0001099 | |
2017-03-24 12:16 | Major Cooke | Note Edited: 0001099 | View Revisions |
2017-03-24 12:17 | Major Cooke | Note Edited: 0001099 | View Revisions |
2017-03-25 10:15 | ZZYZX | Note Added: 0001106 | |
2017-03-25 10:16 | Major Cooke | Note Added: 0001107 | |
2017-03-25 10:16 | ZZYZX | Note Edited: 0001106 | View Revisions |
2017-03-25 10:16 | Major Cooke | Note Edited: 0001107 | View Revisions |
2017-03-25 12:45 | Nash | Note Added: 0001109 | |
2017-03-25 13:37 | Major Cooke | Note Added: 0001110 | |
2017-03-25 13:37 | Major Cooke | Note Edited: 0001110 | View Revisions |
2017-03-29 13:29 | Graf Zahl | Note Added: 0001174 | |
2017-03-29 13:30 | Graf Zahl | Status | new => resolved |
2017-03-29 13:30 | Graf Zahl | Resolution | open => won't fix |