Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Platypi

Pages: 1 ... 8 9 10 11 12 [13] 14 15 16 17 18 ... 40
181
Help / Re: Add-on Loading Stuck in Loop on Startup
« on: December 05, 2017, 12:51:06 AM »
Another user has informed me that one of my add-ons was causing their game to not startup. This confirms my suspicion that I'm creating keybinds incorrectly. I'm migrating to Modification Help. I'll keep this thread unlocked for now, just in case I've incorrectly narrowed down the problem.

182
Modification Help / [SOLVED] Adding Keybinds Breaks Game
« on: December 05, 2017, 12:41:21 AM »
I made a thread in the Help section about this earlier. I've recently been made aware that it's likely an error in my coding. Essentially, add-ons I create with keybinds tend to conflict with other add-ons. When they do, Blockland will load the same add-ons over and over on startup, until I decide to close the game.

Here's the code for an add-on I recently posted that has caused the problem for me and another user:
Code: [Select]
$remapDivision[$remapCount] = "Avatar Favorites";
for (%i = 1; %i < 10; %i++) {
$remapName[$remapCount] = "Switch to Avatar Favorite #" @ %i;
$remapCmd[$remapCount] = "AK_select" @ %i;
$remapCount++;
}
$remapName[$remapCount] = "Switch to Avatar Favorite #0";
$remapCmd[$remapCount] = "AK_select0";
$remapCount++;

function AK_select(%isDown, %i) {
if (%isDown) {
%fn = "config/client/AvatarFavorites/" @ %i @ ".cs";
if (isFile(%fn)) {
exec(%fn);
echo("Switched to avatar favorite #" @ %i);
}
else {
echo("No config found for avatar favorite #" @ %i);
}
clientCmdUpdatePrefs();
}
}

function AK_select1(%isDown) { AK_select(%isDown, 1); }
function AK_select2(%isDown) { AK_select(%isDown, 2); }
function AK_select3(%isDown) { AK_select(%isDown, 3); }
function AK_select4(%isDown) { AK_select(%isDown, 4); }
function AK_select5(%isDown) { AK_select(%isDown, 5); }
function AK_select6(%isDown) { AK_select(%isDown, 6); }
function AK_select7(%isDown) { AK_select(%isDown, 7); }
function AK_select8(%isDown) { AK_select(%isDown, 8); }
function AK_select9(%isDown) { AK_select(%isDown, 9); }
function AK_select0(%isDown) { AK_select(%isDown, 0); }

What could I be doing wrong? Nothing stands out to me.

I should also note that the same problem has occurred for other, even simpler add-ons, with single keybinds. Usually I just put something like this at the top of my code:
Code: [Select]
$remapDivision[$remapCount] = "Test Division";
$remapName[$remapCount] = "Test Keybind";
$remapCmd[$remapCount] = "TEST_callback";
$remapCount++;

183
Add-Ons / Re: Avatar Favorites Keybinds
« on: December 05, 2017, 12:29:35 AM »
Maybe it's just me but this add-on is stopping me from launching my game. I've moved/removed it in my add-ons folder like 5 times now and I can confirm 100% this is it.
Well stuff... I guess I forgeted something up. I made a post about this behavior the other day. I wasn't sure it was my add-on, since the code was relatively simple. But I guess it's clear now that I'm doing something wrong.

To be clear, does Blockland seem to be loading the same add-ons over and over? If you would post your console.log from your Blockland folder, that would be much appreciated.

185
Add-Ons / Re: Ropes 3.1
« on: December 03, 2017, 08:38:56 PM »
Someone should create a grapple crossbow weapon with this. That'd be awesome for a castle-themed attack and defense.

186
Add-Ons / Re: Make Eventing Great Again (Update)
« on: December 03, 2017, 08:31:26 PM »
However other people such as Platypi also have the problem.
Can confirm.

187
This should help with whatever you're doing.
[BL SOURCE CODE/REFERENCE] ServerLoadSaveFile_Start/Tick/End/Color Data
Oh, nice. This should help me solve my problem. I'll try to post something here if I get it working to my liking.

188
Help / Re: Wrench Error everytime I join game after installing new addon
« on: December 03, 2017, 05:23:21 PM »
I get the same error. Really annoying, but tolerable. This should be fixed, though. Post this on the Make Eventing Great Again thread.

189
Help / Re: Add-on Loading Stuck in Loop on Startup
« on: December 03, 2017, 05:20:04 PM »
It likely is a certain combination of addons. If you encounter the issue again, can you post a full list of addons and try running a trace during startup?
Will do.

<hr>

UPDATE: Apparently, the issue seems to often be triggered by add-ons that include keybinds. Not sure why I didn't notice this pattern before. I have several custom add-ons that include keybinds. So perhaps I'm just doing keybinds incorrectly? I usually just include this at the top of my script:
Code: [Select]
$remapDivision[$remapCount] = "Test Division";
$remapName[$remapCount] = "Test Keybind";
$remapCmd[$remapCount] = "TEST_callback";
$remapCount++;

I should note, too, that while removing all my add-ons with keybinds typically alleviates the problem, sometimes removing another add-on that is not mine and does not include keybinds triggers the problem too.

Perhaps the fact that I'm using Linux and running Blockland through Wine is also pertinent. Next time I encounter this problem, I will try to replicate it on Windows.

190
Add-Ons / Re: Avatar Favorites Keybinds
« on: December 03, 2017, 05:19:13 PM »
So apparently (and predictably) some guy already made an add-on for this. But the download link is broken, so I guess it doesn't matter.

191
General Discussion / Re: EventScript - Eventing 2.0
« on: December 02, 2017, 07:26:10 AM »
Just stumbled across boodal 2's old project by the name of Event Script. It's different, but I thought it was interesting.

192
General Discussion / Re: Hello.
« on: December 02, 2017, 04:12:52 AM »
Oh... hi. run while you still have a social life

193
Help / Add-on Loading Stuck in Loop on Startup
« on: December 02, 2017, 02:50:26 AM »
This happens from time-to-time when I install new add-ons. When I start the game up, the game will keep loading the same add-ons over and over. Sometimes it's just one add-on. Other times it's multiple add-ons.

The frustrating part about this is that it appears to be somewhat random which add-ons seem to cause the problem. Typically, I will keep deleting non-default add-ons until the game loads. Typically I will narrow the problem down to a single add-on that triggers the loop, or two add-ons that appear to trigger the loop when present together. However, if I then delete my add-ons folder, load a fresh set of just default add-ons, and place the one trouble add-on or pair of trouble add-ons, the problem won't arise again. Hence, it's difficult to replicate this problem--not without dumping an entire add-ons folder, which I'd rather not do.

My usual solution is to delete my add-ons folder, get a fresh one, and add add-ons back in until add-on loading gets stuck in a loop again. Then, I'll find which add-on(s) cause the problem (sometimes a different add-on or set of add-ons altogether), and just exclude it/them if I don't find it/them to be necessary. This is a very tedious solution, though, and not really ideal/satisfying.

I mostly want to know if anyone else has experienced this problem before. If so, what caused it for you (if you were able to figure it out)?

194
Add-Ons / Re: Avatar Favorites Keybinds
« on: December 01, 2017, 09:19:29 PM »
i somehow can see abuse of this
other then that it's cool
For sure. I could see this being abused in Murder Mystery or similar games to rapidly switch in and out of a disguise to avoid suspicion or frame another player. I think it's up to mod-makers to prevent players from changing their avatar in subversive ways. in the meantime, I'm probably going to have some fun with this lol

On the brighter side, it should be great for machinimas (e.g. changing a player's facial expression) and general shenanigans.

195
serverDirectSaveFileLoad() works fine. I haven't tried specifying the brickgroup yet, though. Got too tired.
I tried specifying $LoadingBricks_BrickGroup = BrickGroup_Test before running serverDirectSaveFileLoad(%file). While the loaded bricks had events (as expected), the function assigned its own value to $LoadingBricks_BrickGroup. So it looks like I need to call ServerLoadSaveFile_Start() directly to use my own brickgroups.

Honestly, I'm considering just creating my own script for loading BLS files. I already have the code for a BLS loader that allows for the rotation of builds. I just need to implement event loading. I'd prefer to use the base functions if I can get away with it, though.

Pages: 1 ... 8 9 10 11 12 [13] 14 15 16 17 18 ... 40