Jump to content
  • 0

Topzone Votes Check Problem


Question

Posted (edited)

Hello everybody...

 

I'm tryning to pass a topzone reward system (Anarchy's voting system). 

Bellow, I will give the code, when it's the time to check the votes count, then, I get this error: "There is a problem on getting votes from server with rank 15".

 

I've change a lot of times the links, with xzone guide. But still nothing...

 

I use acis 340 rev.

Code:

package net.sf.l2j.gameserver.model.entity;
 
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Collection;
import java.util.HashMap;
 
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.util.Broadcast;
/**
 * @author Anarchy
 *
 */
public class VoteRewardTopzone
{
// Configurations.
private static String topzoneUrl = Config.TOPZONE_SERVER_LINK;
private static String page1Url = Config.TOPZONE_FIRST_PAGE_LINK;
private static int voteRewardVotesDifference = Config.TOPZONE_VOTES_DIFFERENCE;
private static int firstPageRankNeeded = Config.TOPZONE_FIRST_PAGE_RANK_NEEDED;
private static int checkTime = 60*1000*Config.TOPZONE_REWARD_CHECK_TIME;
 
// Don't-touch variables.
private static int lastVotes = 0;
private static HashMap<String, Integer> playerIps = new HashMap<>();
 
public static void updateConfigurations()
{
topzoneUrl = Config.TOPZONE_SERVER_LINK;
page1Url = Config.TOPZONE_FIRST_PAGE_LINK;
voteRewardVotesDifference = Config.TOPZONE_VOTES_DIFFERENCE;
firstPageRankNeeded = Config.TOPZONE_FIRST_PAGE_RANK_NEEDED;
checkTime = 60*1000*Config.TOPZONE_REWARD_CHECK_TIME;
}
 
public static void getInstance()
{
System.out.println("Topzone - Vote reward system initialized.");
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
{
@Override
public void run()
{
if (Config.ALLOW_TOPZONE_VOTE_REWARD)
{
reward();
}
else
{
return;
}
}
}, checkTime/2, checkTime);
}
 
static void reward()
{
int firstPageVotes = getFirstPageRankVotes();
int currentVotes = getVotes();
 
if (firstPageVotes == -1 || currentVotes == -1)
{
if (firstPageVotes == -1)
{
System.out.println("There was a problem on getting Topzone votes from server with rank "+firstPageRankNeeded+".");
}
if (currentVotes == -1)
{
System.out.println("There was a problem on getting Topzone server votes.");
}
 
return;
}
 
if (lastVotes == 0)
{
lastVotes = currentVotes;
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for reward.");
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Votes needed for reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes));
}
if (firstPageVotes-lastVotes <= 0)
{
Broadcast.announceToOnlinePlayers("Topzone: We are in the top "+firstPageRankNeeded+" of topzone, so the reward will be big.");
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone.");
}
}
else
{
Broadcast.announceToOnlinePlayers("Topzone: We need "+(firstPageVotes-lastVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward.");
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes));
}
}
return;
}
 
if (currentVotes >= lastVotes+voteRewardVotesDifference)
{
Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
if (firstPageVotes-currentVotes <= 0)
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone.");
System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Everyone has been rewarded with big reward.");
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
for (L2PcInstance p : pls)
{
boolean canReward = false;
String pIp = p.getClient().getConnection().getInetAddress().getHostAddress();
if (playerIps.containsKey(pIp))
{
int count = playerIps.get(pIp);
if (count < Config.TOPZONE_DUALBOXES_ALLOWED)
{
playerIps.remove(pIp);
playerIps.put(pIp, count+1);
canReward = true;
}
}
else
{
canReward = true;
playerIps.put(pIp, 1);
}
if (canReward)
{
                        for (int i : Config.TOPZONE_BIG_REWARD.keySet())
                        {
                                p.addItem("Vote reward.", i, Config.TOPZONE_BIG_REWARD.get(i), p, true);
                        }
}
else
{
p.sendMessage("Already "+Config.TOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded.");
}
}
playerIps.clear();
}
else
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes));
System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Everyone has been rewarded with small reward.");
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward.");
for (L2PcInstance p : pls)
{
boolean canReward = false;
String pIp = p.getClient().getConnection().getInetAddress().getHostAddress();
if (playerIps.containsKey(pIp))
{
int count = playerIps.get(pIp);
if (count < Config.TOPZONE_DUALBOXES_ALLOWED)
{
playerIps.remove(pIp);
playerIps.put(pIp, count+1);
canReward = true;
}
}
else
{
canReward = true;
playerIps.put(pIp, 1);
}
if (canReward)
{
                        for (int i : Config.TOPZONE_SMALL_REWARD.keySet())
                        {
                                p.addItem("Vote reward.", i, Config.TOPZONE_SMALL_REWARD.get(i), p, true);
                        }
}
else
{
p.sendMessage("Already "+Config.TOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded.");
}
}
playerIps.clear();
}
 
lastVotes = currentVotes;
}
else
{
if (firstPageVotes-currentVotes <= 0)
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone.");
System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for big reward.");
}
else
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes));
System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for small reward.");
Broadcast.announceToOnlinePlayers("Topzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward.");
}
}
}
 
private static int getFirstPageRankVotes()
{
InputStreamReader isr = null;
BufferedReader br = null;
 
try
{
URLConnection con = new URL(page1Url).openConnection();
con.addRequestProperty("User-Agent", "L2TopZone");
isr = new InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);
 
String line;
while ((line = br.readLine()) != null)
{
if(line.contains("<div class=\"slr\">"+firstPageRankNeeded))
                {
int votes = Integer.valueOf(line.split(">")[4].replace("</span", ""));
                 return votes;
                }
}
 
br.close();
isr.close();
}
catch (Exception e)
{
System.out.println(e);
System.out.println("Error while getting server vote count.");
}
 
return -1;
}
 
private static int getVotes()
{
InputStreamReader isr = null;
BufferedReader br = null;
 
try
{
URLConnection con = new URL(topzoneUrl).openConnection();
con.addRequestProperty("User-Agent", "L2TopZone");
isr = new InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);
 
boolean got = false;
 
String line;
while ((line = br.readLine()) != null)
{
if (line.contains("<div class=\"rank\"><div class=\"votes2\">Votes:<br>") && !got)
{
got = true;
int votes = Integer.valueOf(line.split("<div class=\"rank\"><div class=\"votes2\">Votes:<br>")[1].replace("</div></div>", ""));
return votes;
}
}
 
br.close();
isr.close();
}
catch (Exception e)
{
System.out.println(e);
System.out.println("Error while getting server vote count.");
}
 
return -1;
}
}

Config:

Either I put "http://l2topzone.com/totalvotes.php?id=8703"

either " http://l2topzone.com/lineage/server-info/11179/la2dream " It's the same shit error...

 

Thank advance..

Edited by 'Baggos'

1 answer to this question

Recommended Posts

  • 0
Posted

Hello everybody...

 

I'm tryning to pass a topzone reward system (Anarchy's voting system). 

Bellow, I will give the code, when it's the time to check the votes count, then, I get this error: "There is a problem on getting votes from server with rank 15".

 

I've change a lot of times the links, with xzone guide. But still nothing...

 

I use acis 340 rev.

Code:

package net.sf.l2j.gameserver.model.entity;
 
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Collection;
import java.util.HashMap;
 
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.util.Broadcast;
/**
 * @author Anarchy
 *
 */
public class VoteRewardTopzone
{
// Configurations.
private static String topzoneUrl = Config.TOPZONE_SERVER_LINK;
private static String page1Url = Config.TOPZONE_FIRST_PAGE_LINK;
private static int voteRewardVotesDifference = Config.TOPZONE_VOTES_DIFFERENCE;
private static int firstPageRankNeeded = Config.TOPZONE_FIRST_PAGE_RANK_NEEDED;
private static int checkTime = 60*1000*Config.TOPZONE_REWARD_CHECK_TIME;
 
// Don't-touch variables.
private static int lastVotes = 0;
private static HashMap<String, Integer> playerIps = new HashMap<>();
 
public static void updateConfigurations()
{
topzoneUrl = Config.TOPZONE_SERVER_LINK;
page1Url = Config.TOPZONE_FIRST_PAGE_LINK;
voteRewardVotesDifference = Config.TOPZONE_VOTES_DIFFERENCE;
firstPageRankNeeded = Config.TOPZONE_FIRST_PAGE_RANK_NEEDED;
checkTime = 60*1000*Config.TOPZONE_REWARD_CHECK_TIME;
}
 
public static void getInstance()
{
System.out.println("Topzone - Vote reward system initialized.");
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
{
@Override
public void run()
{
if (Config.ALLOW_TOPZONE_VOTE_REWARD)
{
reward();
}
else
{
return;
}
}
}, checkTime/2, checkTime);
}
 
static void reward()
{
int firstPageVotes = getFirstPageRankVotes();
int currentVotes = getVotes();
 
if (firstPageVotes == -1 || currentVotes == -1)
{
if (firstPageVotes == -1)
{
System.out.println("There was a problem on getting Topzone votes from server with rank "+firstPageRankNeeded+".");
}
if (currentVotes == -1)
{
System.out.println("There was a problem on getting Topzone server votes.");
}
 
return;
}
 
if (lastVotes == 0)
{
lastVotes = currentVotes;
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for reward.");
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Votes needed for reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes));
}
if (firstPageVotes-lastVotes <= 0)
{
Broadcast.announceToOnlinePlayers("Topzone: We are in the top "+firstPageRankNeeded+" of topzone, so the reward will be big.");
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone.");
}
}
else
{
Broadcast.announceToOnlinePlayers("Topzone: We need "+(firstPageVotes-lastVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward.");
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes));
}
}
return;
}
 
if (currentVotes >= lastVotes+voteRewardVotesDifference)
{
Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
if (firstPageVotes-currentVotes <= 0)
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone.");
System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Everyone has been rewarded with big reward.");
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
for (L2PcInstance p : pls)
{
boolean canReward = false;
String pIp = p.getClient().getConnection().getInetAddress().getHostAddress();
if (playerIps.containsKey(pIp))
{
int count = playerIps.get(pIp);
if (count < Config.TOPZONE_DUALBOXES_ALLOWED)
{
playerIps.remove(pIp);
playerIps.put(pIp, count+1);
canReward = true;
}
}
else
{
canReward = true;
playerIps.put(pIp, 1);
}
if (canReward)
{
                        for (int i : Config.TOPZONE_BIG_REWARD.keySet())
                        {
                                p.addItem("Vote reward.", i, Config.TOPZONE_BIG_REWARD.get(i), p, true);
                        }
}
else
{
p.sendMessage("Already "+Config.TOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded.");
}
}
playerIps.clear();
}
else
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes));
System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Everyone has been rewarded with small reward.");
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward.");
for (L2PcInstance p : pls)
{
boolean canReward = false;
String pIp = p.getClient().getConnection().getInetAddress().getHostAddress();
if (playerIps.containsKey(pIp))
{
int count = playerIps.get(pIp);
if (count < Config.TOPZONE_DUALBOXES_ALLOWED)
{
playerIps.remove(pIp);
playerIps.put(pIp, count+1);
canReward = true;
}
}
else
{
canReward = true;
playerIps.put(pIp, 1);
}
if (canReward)
{
                        for (int i : Config.TOPZONE_SMALL_REWARD.keySet())
                        {
                                p.addItem("Vote reward.", i, Config.TOPZONE_SMALL_REWARD.get(i), p, true);
                        }
}
else
{
p.sendMessage("Already "+Config.TOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded.");
}
}
playerIps.clear();
}
 
lastVotes = currentVotes;
}
else
{
if (firstPageVotes-currentVotes <= 0)
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone.");
System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for big reward.");
}
else
{
if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT)
{
System.out.println("Server votes on topzone: "+currentVotes);
System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes));
System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes));
}
Broadcast.announceToOnlinePlayers("Topzone: Current vote count is "+currentVotes+".");
Broadcast.announceToOnlinePlayers("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for small reward.");
Broadcast.announceToOnlinePlayers("Topzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward.");
}
}
}
 
private static int getFirstPageRankVotes()
{
InputStreamReader isr = null;
BufferedReader br = null;
 
try
{
URLConnection con = new URL(page1Url).openConnection();
con.addRequestProperty("User-Agent", "L2TopZone");
isr = new InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);
 
String line;
while ((line = br.readLine()) != null)
{
if(line.contains("<div class=\"slr\">"+firstPageRankNeeded))
                {
int votes = Integer.valueOf(line.split(">")[4].replace("</span", ""));
                 return votes;
                }
}
 
br.close();
isr.close();
}
catch (Exception e)
{
System.out.println(e);
System.out.println("Error while getting server vote count.");
}
 
return -1;
}
 
private static int getVotes()
{
InputStreamReader isr = null;
BufferedReader br = null;
 
try
{
URLConnection con = new URL(topzoneUrl).openConnection();
con.addRequestProperty("User-Agent", "L2TopZone");
isr = new InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);
 
boolean got = false;
 
String line;
while ((line = br.readLine()) != null)
{
if (line.contains("<div class=\"rank\"><div class=\"votes2\">Votes:<br>") && !got)
{
got = true;
int votes = Integer.valueOf(line.split("<div class=\"rank\"><div class=\"votes2\">Votes:<br>")[1].replace("</div></div>", ""));
return votes;
}
}
 
br.close();
isr.close();
}
catch (Exception e)
{
System.out.println(e);
System.out.println("Error while getting server vote count.");
}
 
return -1;
}
}

Config:

Either I put "http://l2topzone.com/totalvotes.php?id=8703"

either " http://l2topzone.com/lineage/server-info/11179/la2dream " It's the same shit error...

 

Thank advance..

 

for topzone

votes = Integer.valueOf(inputLine.split(">")[3].replace("</div", "")); 

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

    • this site is "close" to 20 years old man xd
    • competitive prices shyeed bow+10/ maj light set/maj jwl sets  pm me here or / discord : gabe9410
    • L2 NEXUM — SERVER FEATURES High Five · PvP · x300 · GMT+3 Play. Fight. Earn SOL. ✨ SERVER FEATURES ──────────────── ⚡ XP / SP: x300 💰 Adena: x50 👥 Party Exp / Party SP: x1.1 🐉 Raid Boss Drop: x2 🔥 Epic Boss Drop: x2 📜 Quest: x5 💚 Vitality: ON (up to x2) 🛡️ ENCHANT ──────────────── Safe Enchant: +6 Max Enchant: +30 Normal 60% · Blessed 80% · Crystal 65% · Divine 100% Olympiad field: +6 / +6 / +6 💻 WINDOWS / HWID ──────────────── 2 free · up to 4 windows VIP (HWID) 🎮 GAMEPLAY ──────────────── AutoFarm · Community Board (ALT+B) · Custom Hi5 interface DressMe · Active AntiCheat · Newbie / Safe / PvP farm zones Daily events: TvT · CTF · Domination · DM Weekly Olympiad · Weekly Sieges 📅 SCHEDULE (GMT+3) ──────────────── 🏰 Castle Sieges: Sun 20:00–22:00 (Lord 16:00 or 20:00) ⚔️ Territory War: Sat 20:00–22:00 🏆 Olympiad: Thu / Fri / Sat 18:00–00:00 · non-class 🐉 Baium: Sat random 20:00–21:00 🌋 Antharas / Valakas: Sun every 2 weeks 22:30–23:30 🧪 QA / Core / Orfen: 18–24h after death 💎 PLAY TO EARN ──────────────── Farm & fight like High Five. Crypto Auction — sell rare items for SOL. One SOL balance on the panel (Donate + Auction). ──────────────────────────────── SERVER BETA  OPENING Saturday 17 October · 20:00 GMT+3 · PvP x300 https://l2nexum.com    https://discord.com/invite/TmHftynKe5
    • I'm in to help test and trial stuff. L2 Pride brings back memories of countless farming in Cave of Trials
    • Version 0.4.0 - A geodata generator and L2J format support have been added   - Now, you can generate geodata for the server directly from the client. Most regions match server files at 99-100%. - Cruma opens and saves geodata in L2J format (.l2j). - Geodata can be converted from L2OFF to L2J and vice versa. - When exporting to L2OFF, you can immediately build a path node even if the original format is L2J. - Zones and NPCs are only displayed where there is geodata and no longer appear in mid-air.   Download
  • 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..