- 0
[Help] Eclipse Patch bug? "Patch contains 0 added and 0 removed lines"
-
Posts
-
Server is not Classic, is C4 Scions of Destiny. http://eternalsinl2.com https://l2network.eu/details/2458/Lineage-II-Eternal-SIn/#google_vignette
-
By SadLittlePiggg · Posted
Dynamic traffic, static ISP, unlimited traffic and bandwidth packages HTTP, HTTPS, SOCKS5 Over 195 countries/regions Over 100 million real residential IP address pools, with a normal uptime of 99.9%. Special discount code:VIP999 -
By MiaCodeWEB · Posted
Here is the translation, formatted to look professional, clean, and highly scannable for your forum post: Hello L2JBrasil community! I present to you the newest development from MiaCodeWeb. We have created a robust and advanced adaptation of the Phantom system for aCis / L2JAcis 409, focused on Interlude C6 servers. Our main goal was to transform traditional "ornamental bots" into highly realistic, autonomous players. They are capable of creating themselves, restoring themselves, farming, auto-equipping, using skills, responding in chat using Artificial Intelligence, and being managed directly via an in-game panel. GitHub: https://github.com/miacodeweb/L2-Phantom-AI Video Demonstration: [Insert link here] ## Main Features and Implementation We implemented the core of the Phantom system directly into the aCis gameserver. The architecture was divided into independent modules for AI, combat, chat, equipment, inventory, progression, logs, and administration. In-Game Admin Panel: Fully functional //phantom command. It allows you to create new phantoms, restore saved ones, reload configs, start/stop the AI, view online phantoms, kill bugged phantoms, delete them individually, and navigate through pages. Data Persistence: Created phantoms can be registered in phantoms.properties, allowing them to be restored later while maintaining all their progress directly from the database. Centralized Configuration: Everything is controlled by the phantoms.properties file, organized by sections: AI, Loot, Skills, Equipment, Zones, PVP/PK, Gemini (Chat), Logs, Respawn, and Anti-Stuck system. ## Phantom Skills and Behavior Smart Combat: They patrol, search for mobs, and claim targets to prevent multiple phantoms from attacking the same monster. Mages rest when they run out of MP and avoid hitting with physical weapons unnecessarily. Automatic Progression: Auto-learning of skills, automatic class changes following the logical tree of the chosen profession, receiving buffs, and inventory clearing when reaching a certain weight/space percentage. Dynamic Equipment System: They auto-equip based on class and level, using varying item combinations so they don't all look the same. Optimized Loot: Each phantom focuses on picking up drops/herbs from its own mob, avoiding that ugly scene of 10 phantoms chasing the same adena. PVP/PK Behavior (Configurable): Immediate response to attacks, detection of PK players in the visible area, and an optional "PK Rage Mode". ## AI and Movement Navigation and Anti-Stuck: Patrol system, free wandering, obstacle and stuck detection, with Geodata validation (when enabled on the server). Respawn: Automatic return to town after death, alongside safety rules to prevent them from getting permanently stuck in textures. Leveling Zones: Configurable leveling zones (automatic teleports to farm zones are disabled by default, as in Interlude/aCis they rely heavily on geodata accuracy and the real coordinates of your server). ## AI Chat Integration (Gemini 2.5 Flash) We integrated a Whisper system via the Gemini 2.5 Flash API, making the phantoms respond like real Lineage 2 players. Support for both free and paid API tiers. Configurable parameters: GeminiApiTier, Keys, Cooldowns, and DailyLimits. The system detects connection failures, API limits, and empty responses, and logs everything. The prompt has been adjusted so that the phantom doesn't reply with empty or robotic phrases when asked where to level up or what it's doing. ## Dedicated Log System We created an exclusive log file located at gameserver/log/phantoms.log. It records: loading of phantoms, auto-skills, buffs, Gemini API errors/successes, anti-stuck actions, kills/deletes by admin, and configuration issues. ## Simplified Distribution and Installation Thinking about ease of use for administrators, the mod is delivered in a ready-to-use package: phantom-acis-installer-client.zip. Includes an automatic PowerShell installer that injects the code into your Eclipse project. Contains README.md, INSTALL_MAP.md, and the payload/ folder with ready-made routes for aCis. Clean configuration files (without my API keys). Just run the installer over your copy of aCis, refresh Eclipse, compile, and test. ## Custom Jobs The project already has a solid and functional base for aCis 409. The ideal next steps would be to refine the farm routes by level and social behavior with long-term testing on live servers. I accept custom jobs! If you need this system adapted for another revision, exclusive modules, or any other development for your server, get in touch. Through MiaCodeWeb, I also offer complete services involving geodata optimization, advanced VPS administration (Linux), and Java backend management for L2J. Send a PM or visit the GitHub! https://www.l2jbrasil.com/applications/core/interface/file/attachment.php?id=17801&key=135fc8d831b84c05089851b18bfca58a Link dowload:https://github.com/miacodeweb/L2-Phantom-Acis-409
-
Topics

Question
rallisf1
I used to be a dev 4 years ago but haven't used Java since then and i am facing some difficulties.
I am working on a fresh project based on Coyote's Faction engine (with many modifications and additions). My problem must be really unique coz i didn't find anything about it on any forum or by googling. As i was applying some patches i noticed than parts of the patch were completely ignored. No errors showed .even after i manually corrupt the code to mismatch original revision.
Example:
is completely ignored no matter what modifications i do, if i apply the patch manually (go to config.java and paste the + lines) the code works and server compiles but i really need to keep my additions in patches so i can keep track of them.
for the same file this code works:
Index: java/com/l2jserver/Config.java =================================================================== --- java/com/l2jserver/Config.java (revision 4014) +++ java/com/l2jserver/Config.java (working copy) @@ -2193,7 +2220,43 @@ e.printStackTrace(); throw new Error("Failed to Load "+L2JMOD_CONFIG_FILE+" File."); } + + // Load The FactionRelated Config File + try + { + L2Properties FactionRelated = new L2Properties(); + is = new FileInputStream(new File(FACTION_ENGINE_CONFIG_FILE)); + FactionRelated.load(is); + ENABLE_FACTION_ENGINE = Boolean.parseBoolean(FactionRelated.getProperty("FactionEngineEnabled", "False")); + FACTION_TEAM1_NAME = FactionRelated.getProperty("Team1Name", "koofs"); + FACTION_TEAM2_NAME = FactionRelated.getProperty("Team2Name", "noobs"); + FACTION_TEAM1_NAME_COLOR = Integer.decode("0x" + FactionRelated.getProperty("Team1ColorName", "00FFFF")); + FACTION_TEAM2_NAME_COLOR = Integer.decode("0x" + FactionRelated.getProperty("Team2ColorName", "00FF00")); + FACTION_ALLOW_ITEM_REWARD = Boolean.parseBoolean(FactionRelated.getProperty("FactionPlayerGetItemByPvP", "False")); + FACTION_ITEM_NUMBER_REWARD_ON_PVP = Integer.parseInt(FactionRelated.getProperty("FactionEngineAmmountItemReward", "1")); + FACTION_ITEM_REWARD_ID = Integer.parseInt(FactionRelated.getProperty("FactionPvPItemRewardID", "6392")); + FACTION_TEAM1_BASE_X = Integer.parseInt(FactionRelated.getProperty("FactionTeam1BaseX", "0")); + FACTION_TEAM1_BASE_Y = Integer.parseInt(FactionRelated.getProperty("FactionTeam1BaseY", "0")); + FACTION_TEAM1_BASE_Z = Integer.parseInt(FactionRelated.getProperty("FactionTeam1BaseZ", "0")); + FACTION_TEAM2_BASE_X = Integer.parseInt(FactionRelated.getProperty("FactionTeam2BaseX", "0")); + FACTION_TEAM2_BASE_Y = Integer.parseInt(FactionRelated.getProperty("FactionTeam2BaseY", "0")); + FACTION_TEAM2_BASE_Z = Integer.parseInt(FactionRelated.getProperty("FactionTeam2BaseZ", "0")); + FACTION_CUSTOM_SPAWN_LOC_X = Integer.parseInt(FactionRelated.getProperty("FactionCustomSpawnLocX", "0")); + FACTION_CUSTOM_SPAWN_LOC_Y = Integer.parseInt(FactionRelated.getProperty("FactionCustomSpawnLocY", "0")); + FACTION_CUSTOM_SPAWN_LOC_Z = Integer.parseInt(FactionRelated.getProperty("FactionCustomSpawnLocZ", "0")); + NULL_FACTION_STARTING_TITLE = Boolean.parseBoolean(FactionRelated.getProperty("NullFactionStartingTitle", "False")); + AUTO_NOBLESSE = Boolean.parseBoolean(FactionRelated.getProperty("EnableTheAutoNoblesseMod", "False")); + ENABLE_ONLINE_VC = Boolean.parseBoolean(FactionRelated.getProperty("EnableOnlinePlayersVC", "False")); + ENABLE_ONLINE_PLAYERS_ON_ENTERWORLD = Boolean.parseBoolean(FactionRelated.getProperty("EnableOnlinePlayersEnterworld", "False")); + ENABLE_FINFO_VC = Boolean.parseBoolean(FactionRelated.getProperty("EnableFactionInfoVC", "False")); + } + catch (Exception e) + { + e.printStackTrace(); + throw new Error("Failed to Load "+FACTION_ENGINE_CONFIG_FILE+" File."); + } + // Load PvP L2Properties file (if exists) try {but only when i load it from a different file, when both patches are in the same file (i know i don't use index for every section of the same file) eclipse ignores both of them. It's like there is some sort of conflict happening on the first type of code but as i said i took config.java as an example this happens to me in 4 more files.
I use latest versions of Eclipse SDK, Subversion, JDK all 64bit on win 2003 standard x64. I don't think there is something wrong with my setup because if i apply the patches manually i can compile fine and also patches i used on the datapack had no such issues or errors.
Any help would be very much appreciated.
4 answers to this question
Recommended Posts