Hi all, I had some issues to get the Spawn Items working. I never got the extra row in the menu to spawn items when using the latest version of RP loader. But when I stepped back and used the 2200 with all mods for r22, it worked.
In any way, here is my mod test video. I have not had the time to do a big creative build yet, but I will
Video in unlisted mode when writing this, will be official on my channel tomorrow (saturday).
Looks neat. That the Spawn entry did not appear is an issue Iām currently trying to fix⦠Itās a bit difficult though. The library theyāve chosen is kind of⦠errr⦠not handsome? Adding new items when the menu has already been āenchantedā with the evil JS magic seems to not work at all. Iām trying to figure out how to bypass that since we donāt have any kind of proper JS loading (and sadly, much less power than in lua. )
Iāll add it to the list of spotlights.
Edit: Good news! I found a solution, I think. Bad news: I really, really hate it.
Alpha 27 didnāt bring any changes in the lua, so weāre good.
For those that encountered errors/non-working spawn menus, Iāve got a dev build of rp and rp_spawn_stuff that could be tested. In theory, the evil hack Iām using should make it possible to add/modify the start menu at any time, it works quite nice so far but a broader audience canāt hurt.
And with this I call it a night. Tomorrow weāll probably see the pattern-replacement-thingy for alternate naming (now that the start menu bug is hopefully dead) and perhaps some sort of simple mod interface. Remember that I have absolutely zero graphical skills, so prepare some eyebleach.
Updates, kind of. Requires the git version, Iām not going to smod these:
rp_hotfix adds a new option called mods.rp_hotfix.enable_mouse_panning which re-enables the old drag-to-scroll behaviour.
As requested by @phoriist (and a few others I think?), the json for alternate naming has been changed. Itās now ""gender" : { "parts" : [ old list as before ], "replacements" : [ [ "search", "replace" ], ... ] }. Iāve updated ascendies with a few nonsense rules. See a few examples of the names below. (Personal favourite I think: āHookol Forsddon, Dork Lord of Ollā)
Alternate naming has an option to dump names now, too. By specifiying dump inside the config block, you can set an amount of names to be dumped. Example config attached below.
I realize that the new config dealing is sub-optimal. Itās more complicated to share configurations right now, which is something I want to avoid. Concentrating the options does make sense, however. Iāll figure something out.
What do you mean by an interface? Like a modpicker? And Iāll improve any ui based graphics you want (or that actually look bad) as itās one of the few bits of graphics I can kinda do, still practicing with icons though and havenāt got them quite down yet.
I modified the hotfix to pan when the mouse gets within 20px of an edge in theory. In actuality it is giving errors that _radiant.client is nil and stops the lua from working. Line 24 to be precise. Any ideas?
I imagine a new button in the main menu that reads āModsā or something, which takes you to an interface. There you can enable and disable any (rp-)mod (might needs a restart to take effect, but better than nothing right?), read the description/icons of mods and so forth.
If that works, I would add a new option, which would allow users to configure the mods from within the window. Mods could have their own view (thatās how Ember worksā¦?) that is then loaded to configure it. The changes are then saved back into the user_settings.json.
Youāre calling this on the server side, I guess. Also, I found a few interesting strings in the binary:
.rdata:00F61310 00000007 C screen
.rdata:00F61318 0000000A C get_width
.rdata:00F61324 0000000B C get_height
That means likely somewhere around _radiant.renderer.scene, thereās a screen object floating around with those two functions. Iāll have to brute-force a little to find it.
Edit: Dear Jesus, I think I love decoda. _radiant.renderer.screen has two functions, get_width and get_height. Returns 1916x1054 for me, which seems to be the game view.
$: end of the string (special character), same as ^ (beginning of the string)
[aeiou]: any of the characters
[a-f]: a, b, c, d, e, f
t: any character
t+: one or more t (as many as possible)
t-: one or more t (as few as possible)
. : any character
t* : zero or more t (as many as possible)
a? : zero or one a
And technically, you can catch-and repeat too, so captures is another chapter you should check out. For example, ["([aeiou])", "%1%1"] would double every vowel.
Remember that this is case sensitive, i.e. āaā is not āAā.
OK, hacking radiant as we speak. Iām actually still using SciTE as my main editor and good olā grep.pl to find stuff instead of decoda, I guess itās a habit thing. If I could get my hands on anything, it would be the access to the JS devtools.
In related news, I am severely disappointed. Itās been two hours since Iāve released that side-scrolling feature everybody asked for (and the fast-scrolling-key nobody asked for but I thought would make a nice addition) and nobody mentioned it.
Note to self: Hype such things in the future, donāt try to act mysteriously.
If you get yourself the developer preview of RP here, the current version of rp_hotfix here, and set some settings in your user_settings.json such as these here, you can move your screen with your mouse (by gently touching it).
hides
The āgentlyā part is important. Borders have feelings, too. To be more precise, however, Iāve started documenting my stuff on the GitHub Wiki, after Iāve described the config tools of RP Iāll move on to document the mods, starting with rp_hotfix.
On a serious note again, as Iāve said in the edit before; Iāve started to properly document this in hopefully not-so-programming gibberish. I mean, āproperlyā as in ādescribing everything carefullyā, not exactly as in ādoing pictured step-by-step manualsā (that should not be necessary? I think thereās a guide to the user_settings around somewhere, perhaps I can wrap up a tool or temporary mod too until the new mod interface hits).
If thereās a question about how to install or configure something Iām always available.