Jump to content

Tokei

Members
  • Posts

    700
  • Joined

  • Last visited

  • Days Won

    109

Posts posted by Tokei

  1. 2 minutes ago, Anacondaqq said:

    drag and drop do not work in very many cases under simple user at windows. If you are an admin with admin privileges drag N drop feature works fine.

    If you are not admin drag N drop stop working in the very weird case.

    But if you close GRF Editor and will run it with Admin Privileges (right click) -> drag N drop will work fine.

    I think it's somehow related to a path where stored files on win10.

    Except this, GRF Editor has issues with using shell integration checkboxes.

    About add button, please do not remove this option... 

    The drag and drop feature has issues when two processes have different access privileges. Since explorer.exe is not started with admin rights (even if you're an administrator), GRF Editor won't be able to receive messages from explorer. I've seen many posts regarding this issue (it applies well beyong GRF Editor) but there are no apparent solutions to resolve this other than fully disabling UAC from the registry. So if you want to drag and drop, you should not start GRFE as an admin, simply open it normally and it should work fine.

    The file extension feature will require access to the registry and therefore will need admin privileges, which, as you can guess, is a problem. I do not have a copy of Windows 10 yet, so I'm not sure if the file extension even works. I presume it doesn't since Windows always changes how shortcuts work in every update.

    (Updated the mediafire link to fix the "Add..." box with thor files.)

    • Upvote 1
  2. 2 hours ago, Akkarin said:

    When attempting to create a new Thor file, (file -> new -> new thor) i get an unhandled exception error after right clicking on "data" and selecting "Add...":

    I'm using v1.8.2.2 (asmv1.5.3.3063)

    The "Add..." feature is deprecated and should have been removed a while ago. I left it there if people were having trouble with drag & drop, but drag and dropping is still preferred. I'll go see what's wrong with the thor format and the "Add..." feature though, thanks ~!

    • Upvote 1
  3. 4 hours ago, Zell said:

    Where am I missing?

    If i put CONQ_KILLNPC = 500 on my Script when killing a mob, the count its not working.

    Counter type achievements work a bit differently; the target counter that you set (in achievement_db.yml) is your actual goal/condition. So first thing first, you want to add it to your achievement definition:

      - ID: 500001
        Group: "AG_BATTLE"
        Name: "Name"
        Target:
          Count: 500
        Score: 10

    What you want to do isn't compatible with counter type achievements (you'd have to create a new group, pass it to AG_CHAT, and set the start value manually, etc). However you can do this easily via scripting instead:

    OnPCKillNPC:
    	if (CONQ_KILLNPC < 500) {
    		CONQ_KILLNPC++;
    		achievementupdate 500001, ACHIEVEINFO_COUNT1, CONQ_KILLNPC;
    		
    		if (CONQ_KILLNPC == 500) {
    			achievementcomplete 500001;
    		}
    	}
    	
    	end;

    Hmmm, it appears achievementupdate isn't included...! You can add this script function in your source:

    //BUILDIN_DEF(achievementupdate,"iii?"),
    BUILDIN_FUNC(achievementupdate) {
    	struct map_session_data *sd;
    	int i, achievement_id, type, value;
    
    	achievement_id = script_getnum(st, 2);
    	type = script_getnum(st, 3);
    	value = script_getnum(st, 4);
    
    	if (!script_charid2sd(5, sd)) {
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	if (achievement_search(achievement_id) == NULL) {
    		ShowWarning("buildin_achievementupdate: Achievement '%d' doesn't exist.\n", achievement_id);
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	ARR_FIND(0, sd->achievement_data.count, i, sd->achievement_data.achievements[i].achievement_id == achievement_id);
    	if (i == sd->achievement_data.count)
    		achievement_add(sd, achievement_id);
    
    	ARR_FIND(0, sd->achievement_data.count, i, sd->achievement_data.achievements[i].achievement_id == achievement_id);
    	if (i == sd->achievement_data.count) {
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	if (type >= ACHIEVEINFO_COUNT1 && type <= ACHIEVEINFO_COUNT10)
    		sd->achievement_data.achievements[i].count[type - 1] = value;
    	else if (type == ACHIEVEINFO_COMPLETE)
    		sd->achievement_data.achievements[i].complete = value ?  true : false;
    	else if (type == ACHIEVEINFO_COMPLETEDATE)
    		sd->achievement_data.achievements[i].completeDate = value;
    	else if (type == ACHIEVEINFO_GOTREWARD)
    		sd->achievement_data.achievements[i].gotReward = value ? true : false;
    	else {
    		ShowWarning("buildin_achievementupdate: Unknown type '%d'.\n", type);
    		return SCRIPT_CMD_FAILURE;
    	}
    
    	achievement_update_achievement(sd, achievement_id, false);
    	return SCRIPT_CMD_SUCCESS;
    }

    Best of luck ~!

    • Upvote 3
  4. I'd go with

    if (checkoption(0x2|0x4|0x4000|0x40)) {
        mes "Please unhide yourself.";
        close;
    }

    Where
    0x2 = OPTION_HIDE
    0x4 = OPTION_CLOAK
    0x40 = OPTION_INVISIBLE (GM hide and feint bomb)
    0x4000 = OPTION_CHASEWALK

    • Upvote 6
  5. 8 hours ago, Anacondaqq said:

    It's don't showing error message like you have above, i have pure crash and then window which ask me to debug the problem (becase of VS installed).

    And i don't have any error messages like you have on screenshot above. 

    Hah, I wonder what's causing this. I'll have to test with some people who have Windows 10 I guess...! Thanks ;O. The crash handler should prevent any application crash from happening.

  6. Well, the input is wrong:

    	input .@e;
    	
    	if (.@e < 5 || .@e > countitem(757)) {
    		mes "[Leon]";
    		mes "That's an invalid amount of Elunium";
    		mes "The Exchange rate is 5 rough elu to 1 Elunium";
    		close;
    	}
    	
    	.@e = .@e / 5 * 5;
    	
    	mes "Are you sure you want to exchange ^0055FF" + .@e + " Rough Eluniums?^000000?";
    	
    	if (select("Yes:No") == 2) close;
    	
    	mes "[Leon]";
    	mes "Okay come to me again if you want to exchange";
    	delitem 757, .@e;
    	getitem 985, .@e/5;
    	end;

    And so was the delitem line.

    • Upvote 1
  7. On 1/21/2017 at 11:11 AM, n0tttt said:

    This is what happens when I try to use GrfCL -help
    xF0m7aT.png
    Does anybody else have this same issue?

     

    On 2/23/2017 at 11:11 AM, qwiojhqwoid said:

    Same error here on Windows 10. I also tried to run inside a clean VM with all the dependencies installed and Windows 8.1

    @Tokei thanks for this amazing tool! By far the best GRF editor.

    Should be working fine now, using 1.8.2.2.

    • Upvote 1
  8. 11 hours ago, Anacondaqq said:

    This is very strange issue. Because if i open Gravity data.grf, i see all images in normal rotation. But if i open different grfs, i have different rotation (it's happened randomly, and very strange problem). Here is grf with light effects https://mega.nz/#!rIQExSAB!UpsT5hPTT8QLkm2B1VlntdNVyvYlbmVtRxxTJItT-Bk

    Annnnd fixed! The TGA files were using the image type 10; they should be showing up fine now: 1.8.2.2

    Also, I fixed GrfCL's issues. Thanks for the sample GRF @Anacondaqq!

    • Upvote 1
  9. @Anacondaqq

    I'd need the image you're using for tarot (it seems to be custom and not made by Gravity). The TGA image type 2 flips the image horizontally and that is intended. I wasn't aware Gravity supported other TGA formats (all their TGA files use the same image type).

    As for the settings issue, I'm guessing Windows 10 changed the way they associate files. I'll simply move the exception for now.

    Updated: 1.8.2.1

  10. 7 hours ago, Anacondaqq said:

    Right now i can't provide info from SDE, because i have 1.1.7.4, i will try later to do it and provide information, a lot of time has been gone when i switched to 1.1.7.4 from 1.1.8.* 

    But here is some screenshots:

    I'm unable to reproduce the issue, there must be something else going on. Either it was fixed already (... doubt it since I haven't touched this method in a while) or I'd have to ask for the files you're using. A crash like that is quite odd as well since there's an error handler for any managed exception. I may need your .sde file as well (the autocomplete settings are in the project configuration file).

    • Upvote 1
  11. Heya,

    I'd like to ask people who have crashes to report them using the "Copy exception" button and paste the information here using the code tag if possible (and describe the issue, etc). Someone has reported an issue with Ctrl-G (autocomplete feature)...? I haven't been able to reproduce this, so if anyone has some information please go ahead, thank you!

    @Anacondaqq Please let me know if your issue still persist after updating and if it does, I'd need the files you're currently using the reproduce the issue on my end.

    • Upvote 2
  12. As others have pointed out, this is caused by the packet obfuscation not being set properly. You have to either

    • enable it on both the client and the emulator, using the same exact packet keys, or
    • disable it on both end (not recommended in the long run, but it's easier to do when starting).

    To disable packet obfuscation:

    • Client side: Open NEMO and load the client. You'll find the "Disable packet obfuscation" patch that you must appl
    • Server side: Open src\config\core.h and uncomment "#define PACKET_OBFUSCATION" so that you get
      //#define PACKET_OBFUSCATION

      Then recompile your server.

    Make sure you've set the correct client date in src\common\mmo.h > #define PACKETVER 20151104 (or whatever client version you're using, but 55 should be around that area).

    If you're using a client past 2015-11-04 and that you still can't connect, then it would mean you need a higher packet version (56 and above). Unfortunately, rAthena doesn't have those packets in their repo yet so you're out of luck! You'll have to use PEEK and figure those out.

  13. You should avoid resellers and instead go with hostings such as OVH/Limestone/etc. It's a harder learning curve but it's much more rewarding in the end as you'll have full control over your server. As for RagnaHosting, I hope you haven't invested too much in it =/.

    • Upvote 2
×
×
  • Create New...