Jump to content
  • 0

[Java Code adapt Errors ]


Question

Posted

Help i tryed ti addapt

http://maxcheaters.com/forum/index.php?topic=124615.0

 

[share]AIO Voiced Command. 

 

to Epilogue but i have some errors So if somone have some Time pls Pm for t.v.

i tryed to solve the problems and Most of them were easy to fixed but i cant fix everything so i w8 for pm

 

20z1nw8.png

Recommended Posts

  • 0
Posted

stop facking ask for teamviewer,are you so lazy ass that you can't even try on your own?

 

post here a picture of the error so we can help you,get bored of such guys.

  • 0
Posted

stop facking ask for teamviewer,are you so lazy ass that you can't even try on your own?

 

post here a picture of the error so we can help you,get bored of such guys.

Fanky there are many errors that why i sayed team.

Also i tryed to fix most of problems but i dont know java ... i Upload pic in a sec

  • 0
Posted

Fanky there are many errors that why i sayed team.

Also i tryed to fix most of problems but i dont know java ... i Upload pic in a sec

it doesn't matter how many they are.

just post 'em here.

  • 0
Posted
if (Config.ENABLE_VCAIO_SHOP)

                              {

                                      String htmFile = "data/html/mods/VoicedAIOMiniShop.htm";

                              String htmContent = HtmCache.getInstance().getHtm(htmFile);

                              if (htmContent != null)

                              {

                                      NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);

                                      infoHtml.setHtml(htmContent);

                                      activeChar.sendPacket(infoHtml);

                              }

 

and more like this

 

 

 

if (Config.ENABLE_VCAIO_WH)

                              {

                                      activeChar.sendPacket(new ActionFailed());

                                      activeChar.setActiveWarehouse(activeChar.getWarehouse());

                                      activeChar.tempInventoryDisable();

So Fanky any help?

  • 0
Posted

Didn't you think than :

- getHtm were already used on core and you could simply check how it's currently used ?

- put your cursor on the redline to see which is the problem ?

- show us "problems" view instead of "SVN" view in order we see all errors and eventually their explanations ?

 

About getHtm, I can tell you miss one String parameter.

  • 0
Posted

Didn't you think than :

- getHtm were already used on core and you could simply check how it's currently used ?

- put your cursor on the redline to see which is the problem ?

- show us "problems" view instead of "SVN" view in order we see all errors and eventually their explanations ?

 

About getHtm, I can tell you miss one String parameter.

[javac] Compiling 1462 source files to C:\WorkSpace\L2_GameServer\build\classes

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

    [javac] C:\WorkSpace\L2_GameServer\java\com\l2jserver\gameserver\network\clientpackets\RequestBypassToServer.java:129: error: ActionFailed() has private access in ActionFailed

    [javac]                                       activeChar.sendPacket(new ActionFailed());

    [javac]                                                             ^

    [javac] C:\WorkSpace\L2_GameServer\java\com\l2jserver\gameserver\network\clientpackets\RequestBypassToServer.java:145: error: getHtm(String) has private access in HtmCache

    [javac]                               String htmContent = HtmCache.getInstance().getHtm(htmFile);

    [javac]                                                                         ^

    [javac] C:\WorkSpace\L2_GameServer\java\com\l2jserver\gameserver\network\clientpackets\RequestBypassToServer.java:158: error: ActionFailed() has private access in ActionFailed

    [javac]                                       activeChar.sendPacket(new ActionFailed());

    [javac]                                                             ^

    [javac] C:\WorkSpace\L2_GameServer\java\com\l2jserver\gameserver\network\clientpackets\RequestBypassToServer.java:204: error: getHtm(String) has private access in HtmCache

    [javac]                               String htmContent = HtmCache.getInstance().getHtm(htmFile);

    [javac]                                                                         ^

    [javac] Note: C:\WorkSpace\L2_GameServer\java\com\l2jserver\gsregistering\RegisterDialog.java uses unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 4 errors

    [javac] 1 warning

 

BUILD FAILED

C:\WorkSpace\L2_GameServer\build.xml:62: Compile failed; see the compiler error output for details.

 

Total time: 1 minute 10 seconds

 

 

So what i must change?

  • 0
Posted

Use code tag next time.

 

Hard to see how things are used ?

activeChar.sendPacket(ActionFailed.STATIC_PACKET);

 

final String result = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "data/html/noquest.htm");

 

  • 0
Posted

Use code tag next time.

 

Hard to see how things are used ?

activeChar.sendPacket(ActionFailed.STATIC_PACKET);

 

final String result = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "data/html/noquest.htm");

 

i am sorry but, Now i must c/p this lines?

also i dont know how to use code tag ;D

  • 0
Posted

first Parameter is prefix, so put player.getHtmlPrefix() in there, second - where exactly your file is(and whats its name), so u have got "htmFile" in that place, just add prefix.

 

Also replace sendPacket line with activeChar.sendPacket(ActionFailed.STATIC_PACKET);

  • 0
Posted

first Parameter is prefix, so put player.getHtmlPrefix() in there, second - where exactly your file is(and whats its name), so u have got "htmFile" in that place, just add prefix.

 

Also replace sendPacket line with activeChar.sendPacket(ActionFailed.STATIC_PACKET);

So this Line activeChar.sendPacket(new ActionFailed()); will be delete and i will replace it with  activeChar.sendPacket(ActionFailed.STATIC_PACKET);  ?

  • 0
Posted

think.

YES :D

But i didint undestand what exacly i must do with this

if (Config.ENABLE_VCAIO_SHOP)

                              {

                                      String htmFile = "data/html/mods/VoicedAIOMiniShop.htm";

                              String htmContent = HtmCache.getInstance().getHtm(htmFile);

if (htmContent != null)

                              {

My english is bad

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..