Jump to content

Smart Community Board


Recommended Posts

[PL] no to masz fajnie ja jednak mam błędy ;/

 

  [javac] Compiling 1549 source files to D:\SOURCE\trunk\Core\build\classes

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1456: error: cannot find symbol

    [javac] TOP_PLAYER_ROW_HEIGHT = Integer.parseInt(smartCB.getProperty("TopPlayerRowHeight", "19"));

    [javac] ^

    [javac]  symbol:  variable TOP_PLAYER_ROW_HEIGHT

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1457: error: cannot find symbol

    [javac] TOP_PLAYER_RESULTS = Integer.parseInt(smartCB.getProperty("TopPlayerResults", "20"));

    [javac] ^

    [javac]  symbol:  variable TOP_PLAYER_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1458: error: cannot find symbol

    [javac] RAID_LIST_ROW_HEIGHT = Integer.parseInt(smartCB.getProperty("RaidListRowHeight", "18"));

    [javac] ^

    [javac]  symbol:  variable RAID_LIST_ROW_HEIGHT

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1459: error: cannot find symbol

    [javac] RAID_LIST_RESULTS = Integer.parseInt(smartCB.getProperty("RaidListResults", "20"));

    [javac] ^

    [javac]  symbol:  variable RAID_LIST_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1460: error: cannot find symbol

    [javac] RAID_LIST_SORT_ASC = Boolean.parseBoolean(smartCB.getProperty("RaidListSortAsc", "True"));

    [javac] ^

    [javac]  symbol:  variable RAID_LIST_SORT_ASC

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1461: error: cannot find symbol

    [javac] ALLOW_REAL_ONLINE_STATS = Boolean.parseBoolean(smartCB.getProperty("AllowRealOnlineStats", "True"));

    [javac] ^

    [javac]  symbol:  variable ALLOW_REAL_ONLINE_STATS

    [javac]  location: class Config

    [javac] 6 errors

Link to comment
Share on other sites

[PL]no tak dodałem i nie działa :) i następne błędy

 

 

  [javac] Compiling 1555 source files to D:\SOURCE\trunk\Core\build\classes

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:17: error: package gnu.trove.iterator does not exist

    [javac] import gnu.trove.iterator.TIntObjectIterator;

    [javac]                          ^

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:31: error: cannot find symbol

    [javac] import com.l2jserver.gameserver.datatables.ClassListData;

    [javac]                                          ^

    [javac]  symbol:  class ClassListData

    [javac]  location: package com.l2jserver.gameserver.datatables

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:32: error: cannot find symbol

    [javac] import com.l2jserver.gameserver.datatables.ExperienceTable;

    [javac]                                          ^

    [javac]  symbol:  class ExperienceTable

    [javac]  location: package com.l2jserver.gameserver.datatables

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1456: error: cannot find symbol

    [javac] TOP_PLAYER_ROW_HEIGHT = Integer.parseInt(smartCB.getProperty("TopPlayerRowHeight", "19"));

    [javac] ^

    [javac]  symbol:  variable TOP_PLAYER_ROW_HEIGHT

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1457: error: cannot find symbol

    [javac] TOP_PLAYER_RESULTS = Integer.parseInt(smartCB.getProperty("TopPlayerResults", "20"));

    [javac] ^

    [javac]  symbol:  variable TOP_PLAYER_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1458: error: cannot find symbol

    [javac] RAID_LIST_ROW_HEIGHT = Integer.parseInt(smartCB.getProperty("RaidListRowHeight", "18"));

    [javac] ^

    [javac]  symbol:  variable RAID_LIST_ROW_HEIGHT

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1459: error: cannot find symbol

    [javac] RAID_LIST_RESULTS = Integer.parseInt(smartCB.getProperty("RaidListResults", "20"));

    [javac] ^

    [javac]  symbol:  variable RAID_LIST_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1460: error: cannot find symbol

    [javac] RAID_LIST_SORT_ASC = Boolean.parseBoolean(smartCB.getProperty("RaidListSortAsc", "True"));

    [javac] ^

    [javac]  symbol:  variable RAID_LIST_SORT_ASC

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\Config.java:1461: error: cannot find symbol

    [javac] ALLOW_REAL_ONLINE_STATS = Boolean.parseBoolean(smartCB.getProperty("AllowRealOnlineStats", "True"));

    [javac] ^

    [javac]  symbol:  variable ALLOW_REAL_ONLINE_STATS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:135: error: cannot find symbol

    [javac] StringUtil.append(htmlCode, "<table border=0><tr><td>", player.getName(), " (", sex, " ", ClassListData.getInstance().getClass(player.getClassId()).getClientCode(), "):</td></tr>"

    [javac]                                                                                           ^

    [javac]  symbol:  variable ClassListData

    [javac]  location: class RegionBBSManager

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:143: error: cannot find symbol

    [javac] if (player.getLevel() < (ExperienceTable.getInstance().getMaxLevel() - 1))

    [javac]                         ^

    [javac]  symbol:  variable ExperienceTable

    [javac]  location: class RegionBBSManager

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:145: error: cannot find symbol

    [javac] nextLevelExp = ExperienceTable.getInstance().getExpForLevel(player.getLevel() + 1);

    [javac]               ^

    [javac]  symbol:  variable ExperienceTable

    [javac]  location: class RegionBBSManager

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:240: error: method isSilenceMode in class L2PcInstance cannot be applied to given types;

    [javac] if (!receiver.isSilenceMode(activeChar.getObjectId()) && !BlockList.isBlocked(receiver, activeChar) )

    [javac]             ^

    [javac]  required: no arguments

    [javac]  found: int

    [javac]  reason: actual and formal argument lists differ in length

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:285: error: cannot find symbol

    [javac] final TIntObjectIterator<L2PcInstance> it = L2World.getInstance().getAllPlayers().iterator();

    [javac]       ^

    [javac]  symbol:  class TIntObjectIterator

    [javac]  location: class RegionBBSManager

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\RegionBBSManager.java:285: error: cannot find symbol

    [javac] final TIntObjectIterator<L2PcInstance> it = L2World.getInstance().getAllPlayers().iterator();

    [javac]                                                                                 ^

    [javac]  symbol:  method iterator()

    [javac]  location: interface Map<Integer,L2PcInstance>

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\TopBBSManager.java:96: error: cannot find symbol

    [javac] if (Config.ALLOW_REAL_ONLINE_STATS)

    [javac]           ^

    [javac]  symbol:  variable ALLOW_REAL_ONLINE_STATS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\Manager\TopBBSManager.java:162: error: cannot find symbol

    [javac] for (L2PcInstance onlinePlayer : L2World.getInstance().getAllPlayersArray())

    [javac]                                                       ^

    [javac]  symbol:  method getAllPlayersArray()

    [javac]  location: class L2World

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\RaidList.java:26: error: cannot find symbol

    [javac] if (Config.RAID_LIST_SORT_ASC)

    [javac]           ^

    [javac]  symbol:  variable RAID_LIST_SORT_ASC

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\RaidList.java:32: error: cannot find symbol

    [javac] stpoint += Config.RAID_LIST_RESULTS;

    [javac]                 ^

    [javac]  symbol:  variable RAID_LIST_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\RaidList.java:39: error: cannot find symbol

    [javac] PreparedStatement statement = con.prepareStatement("SELECT id, name, level FROM npc WHERE type='L2RaidBoss' AND EXISTS (SELECT * FROM raidboss_spawnlist WHERE raidboss_spawnlist.boss_id = npc.id) ORDER BY `level` " + sort + " Limit " + stpoint + ", " + Config.RAID_LIST_RESULTS);

    [javac]                                                                                                                                                                                                                                                                   ^

    [javac]  symbol:  variable RAID_LIST_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\RaidList.java:83: error: cannot find symbol

    [javac] _raidList.append("<table border=0 cellspacing=0 cellpadding=2 width=750 height="+Config.RAID_LIST_ROW_HEIGHT+">");

    [javac]                                                                                       ^

    [javac]  symbol:  variable RAID_LIST_ROW_HEIGHT

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\TopPlayers.java:56: error: cannot find symbol

    [javac] PreparedStatement statement = con.prepareStatement("SELECT SUM(chr.points), SUM(it.count), ch.char_name, ch.pkkills, ch.pvpkills, ch.onlinetime, ch.base_class, ch.online FROM characters ch LEFT JOIN character_raid_points chr ON ch.charId=chr.charId LEFT OUTER JOIN items it ON ch.charId=it.owner_id WHERE item_id=57 GROUP BY ch.charId ORDER BY " + sort + " DESC LIMIT " + Config.TOP_PLAYER_RESULTS);

    [javac]                                                                                                                                                                                                                                                                                                                                                                                           ^

    [javac]  symbol:  variable TOP_PLAYER_RESULTS

    [javac]  location: class Config

    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\communitybbs\TopPlayers.java:100: error: cannot find symbol

    [javac] _topList.append("<table border=0 cellspacing=0 cellpadding=2 bgcolor=050505 height=" + Config.TOP_PLAYER_ROW_HEIGHT + "><tr><td FIXWIDTH=5></td>");

    [javac]                                                                                             ^

    [javac]  symbol:  variable TOP_PLAYER_ROW_HEIGHT

    [javac]  location: class Config

    [javac] 23 errors

 

Link to comment
Share on other sites

[PL] Rzeszut jak tobie dziala to potpowiedz co ja zrobiem zle. W eclispe mam ok i server tez chodzi dobrze nie mam zadnych bledow. community server ustawilem dobrze bo laczy sie z gameserver, tylko jak wcisne alt+b mam napis 404: file notfound "index.htm"

Link to comment
Share on other sites

tylko jak wcisne alt+b mam napis 404: file notfound "index.htm"

 

[PL] Jak mówi error, brakuje Ci głównego pliku index.htm - dlatego Ci nic nie wyświetla bo nie ma co.

Więc dodaj ten plik do data\html\CommunityBoard [/PL]

Link to comment
Share on other sites

dude one suggestion, you should change something in TopPlayer.java, String adenas = getAdenas(result.getInt("SUM(it.count)")); to this String adenas = getAdenas(result.getLong("SUM(it.count)"));

and make this:

public String getAdenas(long adena)
{
	String adenas = "";
	if (adena >= 1000000000)
		adenas = Long.toString(adena / 1000000000) + " Billion " + Long.toString((adena % 1000000000) / 1000000) + " million";
	else
		adenas = Long.toString(adena / 1000000) + " Million " + Long.toString((adena % 1000000) / 1000) + " k";
	return adenas;
}

btw nice work!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • Well, sorry not sorry for resurrecting old topic, but I believe it's ultimately stupid to implement license checks like Vilmis did 🙂   private static String url = "jdbc:mysql://185.80.128.233/" + getData("Zm9ydW1fZGI="); private static String username = getData("bXJjb3B5cmlnaHQ="); private static String password = getData("Y29weXJpZ2h0XzEyMw=="); con = GlobalDB.getInstance().getConnection(); PreparedStatement statement; statement = con.prepareStatement("SELECT field_6 from core_pfields_content WHERE member_id = ?"); statement.setInt(1, Config.FORUM_USER_ID); ResultSet rset = statement.executeQuery();   This awesome way of coding things leaves us with base64-encoded credentials and DB exposed and accessible globally 😉 Btw he checks his licensing data from some plugin generated table his forum uses. Vilmis took action and ensured that mrcopyright user would have only needed accesses and rights for this operation. But he forgot to ensure that his INFORMATION_SCHEMA database would not be exposed and readable... That leads us to fully readable server variables like version used (10.1.26-MariaDB-0+deb9u1 - pretty ancient DB and OS, I'd assume). From here you can go south and do some kinky stuff, if you want and have knowledge for that. But who cares, right?   Ooh, table core_pfields_content field_6 is IP address which is checked by FORUM_USER_ID. Yep, you can query all IP addresses there (124 of them right now) and also do whatever you want with them! 🙂  The most fun part? Files source has been shared what, more than 2 years ago?  Vilmis still uses very same credentials and never changed it after sources exposure - who cares. Although, "sources" may be way too strong word here. If anyone still use paid Orion versions, I'd suggest packing your shit and leaving immediately, or at least fix this incompetent fool caused problems. It's obvious Vilmis don't care or maybe doesn't even know from the first place how to solve this problem (hint hint - tiny PHP Rest API microservice which would do absolutely the same but without exposing sensitive data?). By doing that, he exposes his infrastructure and YOUR data, and he does that for more than 2 years now 🙂 Developer of century!    
    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...