Jump to content
  • 0

Rebirth System L2J High Five


Question

15 answers to this question

Recommended Posts

  • 0
Posted

Experience in h5 are now in .xml :S

can someone help fix that?

    [javac] Compiling 1644 source files to C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\build\classes
    [javac] C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\java\com\l2jserver\gameserver\model\entity\RebirthManager.java:14: error: cannot find symbol
    [javac] import com.l2jserver.gameserver.model.base.Experience;
    [javac]                                       ^
    [javac]   symbol:   class Experience
    [javac]   location: package com.l2jserver.gameserver.model.base
    [javac] C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\java\com\l2jserver\gameserver\model\entity\RebirthManager.java:174: error: cannot find symbol
    [javac] 			player.removeExpAndSp(player.getExp() - Experience.LEVEL[Config.REBIRTH_AFTER_LEVEL], 0);//Set player to level 1.
    [javac] 			                                        ^
    [javac]   symbol:   variable Experience
    [javac]   location: class RebirthManager
    [javac] C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\java\com\l2jserver\gameserver\model\entity\RebirthManager.java:180: error: method giveAvailableSkills in class L2PcInstance cannot be applied to given types;
    [javac] 			player.giveAvailableSkills();//Give players their eligible skills.
    [javac] 			      ^
    [javac]   required: boolean,boolean
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length

 

 

Experiencetable.java in h5

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* 
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.datatables;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import com.l2jserver.Config;

/**
* @author mrTJO
*
*/
public class ExperienceTable
{
private static Logger _log = Logger.getLogger(ExperienceTable.class.getName());
private byte MAX_LEVEL;
private byte MAX_PET_LEVEL;

private Map<Integer, Long> _expTable;

public static ExperienceTable getInstance()
{
	return SingletonHolder._instance;
}

private ExperienceTable()
{
	loadTable();
}

private void loadTable()
{
	File xml = new File(Config.DATAPACK_ROOT, "data/stats/experience.xml");
	Document doc = null;
	DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
	factory.setValidating(false);
	factory.setIgnoringComments(true);
	if (xml.exists())
	{
		try
		{
			doc = factory.newDocumentBuilder().parse(xml);
		}
		catch (IOException e)
		{
			_log.log(Level.WARNING, "Could not read experience.xml table: " + e.getMessage(), e);
		}
		catch (Exception e)
		{
			_log.log(Level.WARNING, "Could not parse experience.xml table: " + e.getMessage(), e);
		}

		Node table = doc.getFirstChild();
		NamedNodeMap tableAttr = table.getAttributes();

		MAX_LEVEL = (byte)(Byte.parseByte(tableAttr.getNamedItem("maxLevel").getNodeValue())+1);
		MAX_PET_LEVEL = (byte)(Byte.parseByte(tableAttr.getNamedItem("maxPetLevel").getNodeValue())+1);

		_expTable = new HashMap<Integer, Long>(MAX_LEVEL+1);

		for (Node experience = table.getFirstChild(); experience != null; experience = experience.getNextSibling())
		{
			if (experience.getNodeName().equals("experience"))
			{
				NamedNodeMap attrs = experience.getAttributes();
				int level = Integer.parseInt(attrs.getNamedItem("level").getNodeValue());
				long exp = Long.parseLong(attrs.getNamedItem("tolevel").getNodeValue());

				_expTable.put(level, exp);
			}
		}

		_log.info("ExperienceTable: Loaded "+_expTable.size()+" levels");
		_log.info("ExperienceTable: Max Player Level is: "+(MAX_LEVEL-1));
		_log.info("ExperienceTable: Max Pet Level is: "+(MAX_PET_LEVEL-1));
	}
	else
		_log.warning("ExperienceTable: experience.xml not found!");
}

public long getExpForLevel(int level)
{
	return _expTable.get(level);
}

public byte getMaxLevel()
{
	return MAX_LEVEL;
}

public byte getMaxPetLevel()
{
	return MAX_PET_LEVEL;
}

@SuppressWarnings("synthetic-access")
private static class SingletonHolder
{
	protected static final ExperienceTable _instance = new ExperienceTable();
}
}

  • 0
Posted

wrong section, locked until move

 

why before you lock it you dont help? :/ i know you're a good coder you can fix it so easy and if you helped it passed from "request" to a "share" but np. I think "friendship" is better than good code, and some people cant have "friendship" here.

  • 0
Posted

i have a life, and i entered mainly to check for wrong section/title topics. If i have some more time, i answer short question that community dont know to handle (those with 0 replies). But yours would need to go though the code, both diffs and project destination, and i lack the time to do so.

 

But if you like to post crap like that i can tell you as well that noone teached me how to code or answer me a question like that. So, i can easly tell you to learn by your own and fix your problems

  • 0
Posted

i have a life, and i entered mainly to check for wrong section/title topics. If i have some more time, i answer short question that community dont know to handle (those with 0 replies). But yours would need to go though the code, both diffs and project destination, and i lack the time to do so.

 

But if you like to post crap like that i can tell you as well that noone teached me how to code or answer me a question like that. So, i can easly tell you to learn by your own and fix your problems

 

im not telling you or coders like you dont have life, maybe you cant help in "crap" posts like this cause maybe your free time to code you spent only for code for l2j private source, but that's not the question i think in this forum we share and help each other and im learning java by myself too, noone is teaching me, but i do not request if i do not really need it, and i anwered you on that way cause i know have really good coders here and noone help me, and the answer was too others see too. Imagine you on my side, you reallly need one thing and you know here have people who can help you, and all ignore you, how it feels? Good? Remmember this fix is not only for me, its for all who cames to maxcheaters. And im not saying you really have to answer to this request by fixing, cause you are not the only good coder here, and ofc they have life, but in someone life noone have 5 minutes to spent to help me? is that too much time? so someone help me spent 1 minute of life to help me.

 

Thanks and sorry B1ggBoss but its what i feel.

  • 0
Posted

i would learn bymyself, thanks to the lots of guides, tutorial and books shared in the net, so, in my case, there would not be any feeling, cause i would not even made the question.

 

Do the same and you will learn how to find your own answer without depending on the rest

  • 0
Posted

i would learn bymyself, thanks to the lots of guides, tutorial and books shared in the net, so, in my case, there would not be any feeling, cause i would not even made the question.

 

Do the same and you will learn how to find your own answer without depending on the rest

 

I know B1gB0ss thats what i've done all this time i work with l2j and you know java is not so easy to learn, all takes time but i can't re-open my sv with out this mod. :/

  • 0
Posted

I know B1gB0ss thats what i've done all this time i work with l2j and you know java is not so easy to learn, all takes time but i can't re-open my sv with out this mod. :/

Then do not open it. Learn how to control a L2J with some knowledge and then when you are ready you can open your server again
  • 0
Posted

Then do not open it. Learn how to control a L2J with some knowledge and then when you are ready you can open your server again

 

i think thats the best help i ever had, i think with that help i can fix the java code.

 

 

btw, if i fix it by myself i will pwn you all who criticize-me

  • 0
Posted

How would you 'pwn' them, exactly?

 

by fixing it by myself, is that their criticizes, so is that i will show them i will do it by myself and show i will not request more help of people like this. Is that the "pwn" and for other people who need requests and read that topic, please dont request, they will do the same as me only criticizes who is learning java and who need some help too.

 

Any mod please delete this topic, this is not a request anymore, and btw delete the request section it is useless or maybe is only for me. Cause i request a "crap" like someone said in some topic here, maybe its the most "crap" request here on mxc.

 

and btw the best coders here are hNoke and Rizel without any questions cause they have life, have lots of work, and much more, but they when have some time they help without any problems.

 

ps: they are not "certified by oracle" i think.

 

please any mod really delete this topic, cause its will only bring "fight" in forum and i dont want it. so if not closed i will ignore all posts after that.

  • 0
Posted

by fixing it by myself, is that their criticizes, so is that i will show them i will do it by myself and show i will not request more help of people like this. Is that the "pwn" and for other people who need requests and read that topic, please dont request, they will do the same as me only criticizes who is learning java and who need some help too.

 

Any mod please delete this topic, this is not a request anymore, and btw delete the request section it is useless or maybe is only for me. Cause i request a "crap" like someone said in some topic here, maybe its the most "crap" request here on mxc.

 

and btw the best coders here are hNoke and Rizel without any questions cause they have life, have lots of work, and much more, but they when have some time they help without any problems.

 

ps: they are not "certified by oracle" i think.

 

please any mod really delete this topic, cause its will only bring "fight" in forum and i dont want it. so if not closed i will ignore all posts after that.

See? Thats how it feels when you dont need anyone's help.

 

Its better when your fixing something on your own instead of some random dude posting it ready for you, if this happens, then you'll never learn

  • 0
Posted

by fixing it by myself, is that their criticizes, so is that i will show them i will do it by myself and show i will not request more help of people like this. Is that the "pwn" and for other people who need requests and read that topic, please dont request, they will do the same as me only criticizes who is learning java and who need some help too.

 

Any mod please delete this topic, this is not a request anymore, and btw delete the request section it is useless or maybe is only for me. Cause i request a "crap" like someone said in some topic here, maybe its the most "crap" request here on mxc.

 

and btw the best coders here are hNoke and Rizel without any questions cause they have life, have lots of work, and much more, but they when have some time they help without any problems.

 

ps: they are not "certified by oracle" i think.

 

please any mod really delete this topic, cause its will only bring "fight" in forum and i dont want it. so if not closed i will ignore all posts after that.

 

It's not useless. you came on here asking people to make something for you. Not only that but you make a post with what seems like very easy errors to correct if you had any idea what you were doing.

 

First thing, you had a problem about not helping you with your problem before moving your thread. I don't understand why you'd get antzy about that, the post was in the wrong section.

 

Second, nobody here owes you anything so stop acting like people are are obligated to help you with your issues. These errors are simple and if you knew the basics you could probabaly solve them yourself. Nobody is here to help you deal with basic bullshit. You should come here with a basic understanding of the subject before throwing hissy fits about it. Honestly, when I read your posts I imagine an ape throwing shit around a room because he couldn't play with a shinny object.

 

And fixing something yourself would 'pwn' them? Nobody gives a shit about it. The only thing you're doing is fixing it yourself. It's not an ego showdown here. The best advice I've seen so far is:

Then do not open it.

 

It's pretty obvious you have no clue what you're doing and you have no interest in learning, therefor solving problems for you is just making you unprepared for the next set of problems you run into.

 

 

  • 0
Posted

Sorry for posting in an old thread.... But... It's incredible, people ask for a little bit of help and you all attack him saying stupid things as "do it by yourself" pfff, so, why the fack did he post the thread? because he could do it? c'mon, if u don't have the freakin' time to help him don't answer things like that and just let others do the job that you couldn't...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • And Discord: https://discord.gg/3aYqWNqb
    • Ofc: https://discord.gg/3aYqWNqb
    • You can find some H5 skins shared in old L2 modding Discords, but most of the higher‑quality ones are either paid or come bundled with full client edits. I usually mix in commissioned work and whatever I can patch myself. On a side note, I fund a lot of these commissions by selling off game items through instant sell cs2 skins, which has been a quick way for me to get some cash for projects.
    • There is no need for gRPC in this case, even tho originally it was gRPC based but since we don't need it to be bi-directional, we switched to simple http requests for the web calls and SSEs for the data streamed from the server. There are distributed locks in place to precent race conditions between actions that can happen between multiple web instances and the server.   Local models can also be slow depending on the model, and most external models can actually be faster than local ones if you use Flash 2.5 or something along those lines. I am running on 512GB of Unified Memory on my Mac Studio M3 Ultra so the speed of the local model for a small model is pretty good but I tested it with Gemini too and it works equally as fast and in some cases faster. The way it works is that I'm using pgvector (one of the benefits of moving to Postgres) to search the data and see what the player can see etc and there is some batching of the next few actions for 2-4 seconds for the user until the next LLM request fires. The batching also includes branching on logic so if they for example fall under some HP they will move to kiting instead of attacking or maybe they heal etc.   Everything is authed and permission-based. The server and the backend of the frontend have secure communication between them, either with a symmetric key (not recommended for production) or a certificate (the recommended way), so there is no worry. It's all tied to the account's access level, etc., so nobody can make an action that they normally wouldn't be allowed to do. Even the MCP is token-based, and there are prompt injection protections in place. The MCP is audited, and every mutation needs confirmation. The admin area is only accessible to the admin account anyway so normal users can't access it.  
  • Topics

×
×
  • 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..