|
You last visited: Today at 02:39
Advertisement
Private Server Info and Support Thread
Discussion on Private Server Info and Support Thread within the DarkOrbit forum part of the Browsergames category.
11/07/2014, 18:31
|
#1141
|
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
|
Quote:
Originally Posted by manulaiko3.0
You should learn programming before making a private server
Change
PHP Code:
$this->hall_of_fame[$key]["grade"]
with the name of the rank variable
|
The rank variable is "grade" !
|
|
|
11/07/2014, 18:32
|
#1142
|
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
|
Quote:
Originally Posted by steppdroid
The rank variable is "grade" !
|
So?
I don't know if it's $this->grade, $grade, $this->hall_of_fame->grade...
It's your work to edit it
|
|
|
11/07/2014, 18:38
|
#1143
|
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
|
Quote:
Originally Posted by manulaiko3.0
So?
I don't know if it's $this->grade, $grade, $this->hall_of_fame->grade...
It's your work to edit it
|
This is my index.php
PHP Code:
<?php
if (isset($this->js))
{
foreach ($this->js as $js)
{
echo '<script type="text/javascript" src="'.URL.'views/'.$js.'"></script>';
}
}
?>
<script type="text/javascript" src="./public/js/jquery.colorbox.js"></script>
<script src="//cdn.rawgit.com/hilios/jQuery.countdown/2.0.4/dist/jquery.countdown.min.js"></script>
<link type="text/css" href="public/css/internalStart.css?id=1" rel="stylesheet" media="all" />
<script>
function openMiniMap()
{
console.log("works");
window.open('<?php echo URL; ?>internalMap', '_blank', 'width=1280,height=900');
}
$(function()
{
var fullDate = new Date();
var correctMonth = fullDate.getMonth()+1;
var twoDigitMonth = correctMonth+"";if(twoDigitMonth.length==1) twoDigitMonth="0" +twoDigitMonth;
var twoDigitDate = fullDate.getDate()+"";if(twoDigitDate.length==1) twoDigitDate="0" +twoDigitDate;
var currentDate = fullDate.getFullYear() + "/" + twoDigitMonth + "/" + twoDigitDate;
$('#clock').countdown(currentDate + " 21:00:00", function(event) {
var totalHours = event.offset.totalDays * 24 + event.offset.hours;
$(this).html(event.strftime(totalHours + ' hr %M min %S sec'));
});
});
</script>
<div style="display: none">
<div id="edit_account" style="padding: 10px 0 10px 0; height: 100px">
<center>
<p id="errorMessage"></p>
<form id="edit_account_form" action="<?php echo URL.'internalStart/EditAccount'; ?>" method="post">
<ul style="list-style: none;">
<li>
<label for="">Username : </label><input name="username" type="text" value="<?php echo Auth::getUser('username'); ?>">
</li>
<br>
<input type="submit" value="Edit username">
</ul>
</form>
</center>
</div>
</div>
<div id="left_start">
</div>
<div id="mainContentStart">
<div id="breaking_news">
<B>WELCOME TO ELITE\/SERVER!</B>
<BR>
<BR>
1)BUY YOUR SHIP
<BR>
2)BUY YOU DESIGN
<BR>
3)CONFIG IT IN HANGAR
<BR>
4)START!
<BR>
<BR>
NO EVENT <span id="clock"></span></B><br><br>
Problems? go to the HELP section
</div>
<div id="user_infos">
<ul>
<li>
<label for="">Username :</label><span id="username"><?php echo Auth::getUser('username'); ?></span>
</li>
<li>
<label for="server">Server :</label><span id="server">ELITE\/SERVER</span>
</li>
<li>
<label for="rank">Rank :</label><span id="rank"><img src="http://do-test.a.bpcdn.net/do_img/global/ranks/rank_<?php echo Auth::getUser('grade'); ?>.png"></span>
</li>
<li>
<label for="premium">Premium :</label><span id="premium">Yes</span>
</li>
<li>
<label for="level">Level :</label><span id="level">10</span>
</li>
<li>
<label for="company">Company :</label><span id="company"><?php if (Auth::getUser('factionid') == 1) { echo 'MMO'; } else if (Auth::getUser('factionid') == 2) { echo 'EIC'; } else if (Auth::getUser('factionid') == 3) { echo 'VRU'; } ?></span>
</li>
</ul>
<span class="menu"><a id="edit_account_link" href="#">Edit Username</a></span>
</div>
<div id="hall_of_fame">
<table>
<?php
$i = 0;
foreach ($this->hall_of_fame as $key => $value) {
$i++;
echo '<tr>';
echo '<td class="id">'.$i.'.</td>';
echo '<td class="username">'.$this->hall_of_fame[$key]['username'].'</td>';
echo '<td class="point">'.$this->hall_of_fame[$key]['user_kill'].'</td>';
echo '</tr>';
}
?>
</table>
<span class="menu" style="font-size: 10px">You've killed <?php echo Auth::getUser('user_kill'); ?> players</span>
</div>
<div id="logbook">
<div class="scroll-panel">
<p>
<?php
foreach ($this->logbook as $key => $value)
{
echo $this->logbook[$key]['timestamp'].'<br>'.$this->logbook[$key]['message'].'<br><br>';
}
?>
</p>
</div>
</div>
</div>
|
|
|
11/07/2014, 19:51
|
#1144
|
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 0
|
PLS Download link in ELITE\/SERVER  Thx
|
|
|
11/07/2014, 20:16
|
#1145
|
elite*gold: 0
Join Date: Jan 2011
Posts: 92
Received Thanks: 49
|
Quote:
Originally Posted by steppdroid
This is my index.php
PHP Code:
<?php
if (isset($this->js))
{
foreach ($this->js as $js)
{
echo '<script type="text/javascript" src="'.URL.'views/'.$js.'"></script>';
}
}
?>
<script type="text/javascript" src="./public/js/jquery.colorbox.js"></script>
<script src="//cdn.rawgit.com/hilios/jQuery.countdown/2.0.4/dist/jquery.countdown.min.js"></script>
<link type="text/css" href="public/css/internalStart.css?id=1" rel="stylesheet" media="all" />
<script>
function openMiniMap()
{
console.log("works");
window.open('<?php echo URL; ?>internalMap', '_blank', 'width=1280,height=900');
}
$(function()
{
var fullDate = new Date();
var correctMonth = fullDate.getMonth()+1;
var twoDigitMonth = correctMonth+"";if(twoDigitMonth.length==1) twoDigitMonth="0" +twoDigitMonth;
var twoDigitDate = fullDate.getDate()+"";if(twoDigitDate.length==1) twoDigitDate="0" +twoDigitDate;
var currentDate = fullDate.getFullYear() + "/" + twoDigitMonth + "/" + twoDigitDate;
$('#clock').countdown(currentDate + " 21:00:00", function(event) {
var totalHours = event.offset.totalDays * 24 + event.offset.hours;
$(this).html(event.strftime(totalHours + ' hr %M min %S sec'));
});
});
</script>
<div style="display: none">
<div id="edit_account" style="padding: 10px 0 10px 0; height: 100px">
<center>
<p id="errorMessage"></p>
<form id="edit_account_form" action="<?php echo URL.'internalStart/EditAccount'; ?>" method="post">
<ul style="list-style: none;">
<li>
<label for="">Username : </label><input name="username" type="text" value="<?php echo Auth::getUser('username'); ?>">
</li>
<br>
<input type="submit" value="Edit username">
</ul>
</form>
</center>
</div>
</div>
<div id="left_start">
</div>
<div id="mainContentStart">
<div id="breaking_news">
<B>WELCOME TO ELITE\/SERVER!</B>
<BR>
<BR>
1)BUY YOUR SHIP
<BR>
2)BUY YOU DESIGN
<BR>
3)CONFIG IT IN HANGAR
<BR>
4)START!
<BR>
<BR>
NO EVENT <span id="clock"></span></B><br><br>
Problems? go to the HELP section
</div>
<div id="user_infos">
<ul>
<li>
<label for="">Username :</label><span id="username"><?php echo Auth::getUser('username'); ?></span>
</li>
<li>
<label for="server">Server :</label><span id="server">ELITE\/SERVER</span>
</li>
<li>
<label for="rank">Rank :</label><span id="rank"><img src="http://do-test.a.bpcdn.net/do_img/global/ranks/rank_<?php echo Auth::getUser('grade'); ?>.png"></span>
</li>
<li>
<label for="premium">Premium :</label><span id="premium">Yes</span>
</li>
<li>
<label for="level">Level :</label><span id="level">10</span>
</li>
<li>
<label for="company">Company :</label><span id="company"><?php if (Auth::getUser('factionid') == 1) { echo 'MMO'; } else if (Auth::getUser('factionid') == 2) { echo 'EIC'; } else if (Auth::getUser('factionid') == 3) { echo 'VRU'; } ?></span>
</li>
</ul>
<span class="menu"><a id="edit_account_link" href="#">Edit Username</a></span>
</div>
<div id="hall_of_fame">
<table>
<?php
$i = 0;
foreach ($this->hall_of_fame as $key => $value) {
$i++;
echo '<tr>';
echo '<td class="id">'.$i.'.</td>';
echo '<td class="username">'.$this->hall_of_fame[$key]['username'].'</td>';
echo '<td class="point">'.$this->hall_of_fame[$key]['user_kill'].'</td>';
echo '</tr>';
}
?>
</table>
<span class="menu" style="font-size: 10px">You've killed <?php echo Auth::getUser('user_kill'); ?> players</span>
</div>
<div id="logbook">
<div class="scroll-panel">
<p>
<?php
foreach ($this->logbook as $key => $value)
{
echo $this->logbook[$key]['timestamp'].'<br>'.$this->logbook[$key]['message'].'<br><br>';
}
?>
</p>
</div>
</div>
</div>
|
LOL this guy xD
|
|
|
11/07/2014, 21:09
|
#1146
|
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
|
Quote:
Originally Posted by bobn171
LOL this guy xD
|
LOL ?
I solved it :P
|
|
|
11/08/2014, 03:23
|
#1147
|
elite*gold: 0
Join Date: Jul 2011
Posts: 50
Received Thanks: 10
|
Can someone tell me were i have to to put my IP in the htdocs folder? Using Linkpads htdocs
|
|
|
11/08/2014, 09:39
|
#1148
|
elite*gold: 1
Join Date: Oct 2013
Posts: 1,257
Received Thanks: 1,276
|
Quote:
Originally Posted by steppdroid
LOL ?
I solved it :P
|
So nice to hear that.
Then you can maybe share the way you did this... You're using files you didn't coded, you're asking lots of questions about them, and when you find a solution you don't share it?
That's just a few lines of php, not a whole file, that's not hard to copy them and paste them into your post.
Some people might be wondering how to do this, help them, as some people helped you
|
|
|
11/08/2014, 10:15
|
#1149
|
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 0
|
Warning: fsockopen(): in C:\xampp\dorps\sockets\Class.Emulator.Updater.php on line 20
what problem ?
|
|
|
11/08/2014, 11:52
|
#1150
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
Quote:
Originally Posted by TheDarkDiamonds
So nice to hear that.
Then you can maybe share the way you did this... You're using files you didn't coded, you're asking lots of questions about them, and when you find a solution you don't share it?
That's just a few lines of php, not a whole file, that's not hard to copy them and paste them into your post.
Some people might be wondering how to do this, help them, as some people to helped you 
|
101% agree with that. It's what a good community is about!
|
|
|
11/08/2014, 13:52
|
#1151
|
elite*gold: 15
Join Date: Feb 2014
Posts: 313
Received Thanks: 78
|
code to set the base on Aurora please
|
|
|
11/08/2014, 17:18
|
#1152
|
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
|
Quote:
Originally Posted by Chanhy
Warning: fsockopen(): in C:\xampp\dorps\sockets\Class.Emulator.Updater.php on line 20
what problem ?
|
That class was made to update the emulator stats throught socket instead of MySQL because once the emulator was started if an user registered the emulator wouldn't recognize that account and will give an error, you can just ignore it
|
|
|
11/08/2014, 21:02
|
#1153
|
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 0
|
pls emulator is DarkOrbit Remix PS 3.0 [Beta Release]
|
|
|
11/08/2014, 22:28
|
#1154
|
elite*gold: 3570
Join Date: Dec 2012
Posts: 13,043
Received Thanks: 8,252
|
Quote:
Originally Posted by manulaiko3.0
That class was made to update the emulator stats throught socket instead of MySQL because once the emulator was started if an user registered the emulator wouldn't recognize that account and will give an error, you can just ignore it
|
Just asking. Why do you load everything at the start of the emulator and work with that, instead of using this query, if a user logs in:
SELECT ´name´ FROM ´accounts´ WHERE ´userid´= packetParser.getInt() AND ´sessionid` = packetParser.getString()
If you understand what I mean. If you do it with everything, which has to be initialized when the user logs in or has to be updated directly, no ammo can get lost, no error while logging in and so on.
|
|
|
11/08/2014, 22:38
|
#1155
|
elite*gold: 15
Join Date: Feb 2014
Posts: 313
Received Thanks: 78
|
help me plz
|
|
|
Similar Threads
|
Private private server :P READ FOR MORE INFO
12/01/2010 - SRO Private Server - 12 Replies
hey guys im wondering if there is anyway to make a real private server like ZSZC or SWSRO or MYSRO but to where i can only play and level a character and as if it was a real private server. but just for me, not like an emulator where im already lvl 90 or 120 or whatever. i mean one where i set the rates and i level. if not then ok u can close this. but i was just wondering.
|
All times are GMT +1. The time now is 02:41.
|
|