PDA

View Full Version : 317 Complete NOOB 'Project Insanity'Guide + Tips to making a good RSPS



Ambient
July 29th, 2011, 11:09
Recommended tools that you should have before you consider proceeding:
NotePad++ (Only the registered members can see the link.)
WinRar (Only the registered members can see the link.)
Java JDK (Only the registered members can see the link.)
Java (Only the registered members can see the link.)
Co-ordinates (custom made by me) (Only the registered members can see the link.)
Item ID list (Only the registered members can see the link.)
NPC ID list (Only the registered members can see the link.)
Original 'Project Insanity' + All dupes fixed - CLIENT (Only the registered members can see the link.) - SERVER (Only the registered members can see the link.)





Guide Legend
-Introduction
-Changing Stating Location
-How to change the Home Teleport (Spell book)
-Changing Starting Package
-How to add/change log-in message
-Spawning NPC's
-Adding Shops
-How to add NPC drops and change drop-rates
-How to change Prices
-Adding/Changing Global Objects
-Changing XP Rate
-Changing the Max skill level from 99
-Enabling/disabling Administrator's from trading, selling or dropping any item
-How to edit player in-game attributes (Skill level, rights, bank items etc...)
-How to make various Commands
*Teleportation commands
*Item Commands
*How to add player rights to commands
-TIPS





-Introduction (Skip if needed)
Does you 'Favourites' bar look like this? Only the registered members can see the link. Crowded with multiple guides that are an absolute nessesity to your Project Insanity developments? Would it be a shit load more simple if they were all compiled and easy to read and follow? Well lucky for you, you have come to the right place...
This guide will in fact include many guides that have already been posted multiple times in the past and no doubt the future, but this guide differs from all of those one hit wonders by having everything you could possibly need all-in-one!





-Changing the Starting location
Possibly One of the Two main things that attract first time users to your server, your starting zone should be vibrant & welcoming to users, it should be the hub of your server, containing the many things that your players require, so make sure you choose a nice and large area that should be able to contain things like shops & portals, so basically the general HUB of your server!

Location of were new players log-in for the first time
1. To get started, you will want to open up your server folder and look for config.java, and open it.
2. Press Control+F and search for:

public static final int START_LOCATION_X = #### //Defult Starting Location
public static final int START_LOCATION_Y = ####
3. Change the #### with the X and Y co-ordinates of your desired Home co-ordinates

Location of were players spawn if they die
1. Open up your server folder and look for config.java, and open it.
2. Search for:


public static final int RESPAWN_X =

There you will see two lines of code like this:


public static final int RESPAWN_X = ####
public static final int RESPAWN_Y = ####

3. Change #### With the co-ordinates of your death spawn location





How to change the Home Teleport (Spell book)
Does you home teleport take you to a location other than 'your' home spot? A simple fix will solve that problem :)

1. Open up your server folder and look for config.java, and open it.
2. Search for this line:


public static final int LUMBY_X =

There you will see two lines that look like this:


public static final int LUMBY_X = ####
public static final int LUMBY_Y = ####

3. Change #### with the X & Y co-ordinates of your home location.





-Changing Starting Package
Maybe the second most important aspect to getting your new players interested in your server is the humble starter pack, I say this because it is what give's your players the tools needed to gain levels, earn money etc... The starter package should contain the bear minimums without it becoming too much of a challenge for players to earn Gold, or too valuable in which you will get people repeatability drop-trading the riches and what-not...

1. First you are going to want to open up your server folder and search for your PlayerAssistant.java, and open it.
2. Press Control+F and search for:

public void addStarter() {
You will see something like this underneath it

c.getItems().addItem(995,5000000);
c.getItems().addItem(1731, 1);
c.getItems().addItem(554,600);
c.getItems().addItem(555,600);
c.getItems().addItem(556,600);
c.getItems().addItem(558,1800);
c.getItems().addItem(1381,1);
c.getItems().addItem(1323,1);
c.getItems().addItem(841,1);
c.getItems().addItem(882,1000);
c.getItems().addItem(380,500);
}

Here is a basic explanation:

c.getItems().addItem(##,####);
##= Item ID
####= Amount of that Item





-How to add/change log-in message
Need something to tell your player about a new update, exspected content or just a good hello when they log-in? A customised log-in message will do the trick!
1. Open up your server folder and search for Client.java, and open it
2. Press cotrol+F and search for:


setSidebarInterface(0, 2423);

3. Under that line you should see:


sendMessage("####");

(If you don't, add it in)
4. Replace #### with your custom log-in message





-Spawning NPC's
NPC's are the backbone of any RSPS, with out them, the game would only consist of skilling and would be rather boring. So lets get Started...

1. Open up your server folder and search for spawn-config.CFG, and open it.
2. You will see a whole line of codes similar to this


// npc spawnX spawnY height walk maxhit attack defence description
//Bosses
spawn = 2881 2907 4445 0 1 38 500 200 Supreme
spawn = 2882 2915 4456 0 1 67 500 200 Prime
spawn = 2883 2922 4444 0 1 36 500 100 Rex
spawn = 3200 3275 3914 0 1 40 450 550 Chaos Ele
spawn = 50 2271 4698 0 1 25 500 350 King Black Dragon
[ENDOFSPAWNLIST]

(Maybe not as tidy, but similar.)

Explination


// npc spawnX spawnY height walk maxhit attack defence description
spawn = 2881 X Cord Y Cord 0=Ground 1=walks/0=Still Maxhit att Lv. def Lv. " "
[ENDOFSPAWNLIST]




height walk
0= Ground level 0= Can't walk
1+= Goin up levels 1= Can walk


3. Too add a NPC, just work off the explanations given to you.





-Adding Shops
Adding shops to your server is vital to it's economy by supplying players with the equipment they need to thrive on your server, while it could also be the worst thing to it if you start adding rare's to a shop, so don't go to over board.
e.g keeping 'rares' as monster drops

1. Open up your server folder and search for ActionHandler.java, and open it.
2. Press cotrol+F and search for:


case 683:

And under it add

case ##:
c.getShops().openShop(####);
Explination
## = The NPC ID of the Shopkeeper
#### = The Shop ID that will be used in shops.cfg (make sure that this number is unique or you will get some errors!)

3. Open up your server folder and search for Shops.cfg, and open it.
2. You will see lines of code similar to this


//-----ShopID---ShopName--------------------------------Sell----Buy-----Item----Amount--Item----Amount
shop = 1 General_Store 1 1 590 100 1755 100
shop = 2 Aubury's_Magic_Store 2 2 554 50000 555 500000

Explination


//-----ShopID-----------ShopName------------------------Sell----Buy-----Item------------Amount
shop = Your shop ID SHOP_Name ## ## Item ID amount of that item

## = Change to 1 to only buy and sell what the shop has stocked - Change to 2 to buy and sell anything!





-How to add NPC drops and change drop-rates
Have you found that your NPC's are not dropping an item too regularly, too often or not at all? Just follow these simple steps to change all that!

1. Open up your server folder and search for NPCDrops.TSM, and open it. (remember to right click and select edit!)
2. You will see lines of code like this:


#Man drops
1:1 995:100 554:100
#Guard drops
9:1 995:200 555:100
#general graardor
2550:40 829:1 391:2 385:2 564:50 1249:1 3052:3 892:75 1303:1
11712:1 11728:1 11714:1 11724:1 11704:1 11710:1
#sergeant grimspike
2551:100 995:50000 1303:1 385:2 3024:3 564:75 3052:3
11728:1 11710:1 11724:1 11712:1 11726:1 11714:1 11714:1 11710:1 11712:1

Explanation.


#NPC NAME here
####:## ####:## ####:## ####:## ####:## ####:##

#### = Item ID you want to be dropped
## = The rate of which the item is dropped
3. So just change it as stated above and you should be fine.





-How to change Prices
Having the power to change the prices of items plays a big part in your server, you wouldn't want to play a server were the prices are jacked up high
e.g Rune Platebody = 100K, neither would you want to play a server were they are only 1k each.

1. Open your server folder and search for prices.txt, and open.
2. You will see lines and lines of numbers like this:


0 1
1 1
2 5
3 1
4 5
5 10
6 187500
7 187500
8 187500
9 187500

Explanation
The numbers on the left column correspond to the item ID while the numbers on the right column correspond to the price of that item
3. So as explained above, search for your item ID then change the price of that item via the right hand column





-Adding/Changing Global Objects
Adding static objects to your server is a great way to add diversity between RS and a RSPS, you can do various things with object placing, be it a skilling zone, or a portal that tele's a player to your special zone. Either way, it is a greate way to customise your server (y)

1. Open your server folder and search for ObjectManager.java, and open.
2. There you will need to search for:


public void loadCustomSpawns(Client client)

3. Under that line, add



client.getPA().checkObjectSpawn(#, ##, ###, ####, 10);

Change the #'s to what it says in the below sentence...
# = Object ID
## = Object co-ord X
### = Object co-ord Y
#### = Object Face/Direction





-Changing XP Rate
The XP rate on a server can make or break a player, whether it is because it was to difficult/easy for him or her to level up, because just like in RuneScape gaining the max skill is an accomplishment, an idea length of time taken to get say 99 should be around about 1-7 day's, I'll leave it up to you to figure out a nice rate.

Combat
1. Open up your server folder and search for config.java, and open.
2. There you will need to search for:


public static final int MELEE_EXP_RATE =

You will see these Three lines


public static final int MELEE_EXP_RATE = ####; // damage * exp rate
public static final int RANGE_EXP_RATE = ####;
public static final int MAGIC_EXP_RATE = ####;

3. Change #### to the rate you wish to gain XP at (I hit damage = XP that you set)

Skill's
1. Open up your server folder and search for config.java, and open it.
2. Press control+F and search for:


public static final int WOODCUTTING_EXPERIENCE =

You will see some lines of code like this


public static final int WOODCUTTING_EXPERIENCE = ####;
public static final int MINING_EXPERIENCE = ####;
public static final int SMITHING_EXPERIENCE = ####;
public static final int FARMING_EXPERIENCE = ####;
public static final int FIREMAKING_EXPERIENCE = ####;
public static final int HERBLORE_EXPERIENCE = ####;
public static final int FISHING_EXPERIENCE = ####;
public static final int AGILITY_EXPERIENCE = ####;
public static final int PRAYER_EXPERIENCE = ####;
public static final int RUNECRAFTING_EXPERIENCE = ####;
public static final int CRAFTING_EXPERIENCE = ####;
public static final int THIEVING_EXPERIENCE = ####;
public static final int SLAYER_EXPERIENCE = ####;
public static final int COOKING_EXPERIENCE = ####;
public static final int FLETCHING_EXPERIENCE = ####;

3. Change #### to the rate you wish to gain XP at (Decrease to make harder, Increase to make easier)





-Changing the Max skill level from 99
Is gaining level 99 in your skills seem a bit too low or easy? You can amp up the game by super-charging you players with higher skill ability's to either flaunt off, 0wn up or to gain access to secret content that is only accessible at it's highest peaks!

1. Open up your server folder and search for PlayerAssistant.java, and open it
2. Press control+F and search for:


public int getLevelForXP(int exp) {

You will see this below


public int getLevelForXP(int exp) {
int points = 0;
int output = 0;
if (exp > ####)
return ##;
for (int lvl = 1; lvl <= ##; lvl++) {
points += Math.floor((double) lvl + 300.0
* Math.pow(2.0, (double) lvl / 7.0));
output = (int) Math.floor(points / 4);
if (output >= exp) {
return lvl;
}
}
return 0;
}

3. Change the #'s to what it says in the below sentence...
## = The value you would like your max level to be (135 is the un-confirmed max value)
#### = The value you would like the amount of XP needed to gain that level (2,147,483,647 is the max number stored in a 32-bit signed integer)
4. While still in your server files, search for player.java, and open it.
5.Press Control+F and search for:


public int getLevelForXP(int exp) {

And under that you should see:


public int getLevelForXP(int exp) {
int points = 0;
int output = 0;

for (int lvl = 1; lvl <= ##; lvl++) {
points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
output = (int)Math.floor(points / 4);
if (output >= exp)
return lvl;
}
return ##;
}

6. Change ## With your max level you entered on step 3





-Enabling/disabling Administrator's from trading, selling or dropping any item
If you have any valuable items in a Admin only shop, or if they are getting an unfair advantage to normal player and you cannot trust them to not ruin your servers ecconnomy, this may be the thing for you

1. Open up your server folder and search for config.java, and open it.
2. Search for this line:


static final boolean ADMIN_CAN_TRADE =

You should see 3+ Lines that look like this


public static final boolean ADMIN_CAN_TRADE = ####
public static final boolean ADMIN_CAN_SELL_ITEMS = ####
public static final boolean ADMIN_DROP_ITEMS = ####

Explination.
#### will either be true or false, meaning yes or no
3. Change #### to either true or false





-How to edit player in-game attributes (Skill level, rights, bank items etc...)
1. Open up your server folder and search for your character folder & locate the desired user you would like to edit, and open it.
2. It should look like something similar to this


[ACCOUNT]
character-username = test //In-game username
character-password = testing //In-game password

[CHARACTER]
character-height = 0 //Hight on map- 0=Ground level
character-posx = 3087 //X position on map
character-posy = 3500 //Y Position on map
character-rights = 0 //Player Rights
crystal-bow-shots = 0
skull-timer = 0 //Time left untill Skull wares off
magic-book = 0 //What magic book is being used 0=Modern - 1=Ancient - 2=Lunar
special-amount = 0.0 //Ammount of special left in special bar
barrows-killcount = 0 //Barrows Kill-Count
teleblock-length = 0 //Time untill tele blook wares off
pc-points = 0 //Amount of pest controll points
taskAmount = 0 //Amount of slayer tasks left ot complete?
magePoints = 0 //Mage arena points
autoRet = 0 //auto retaliate on/off
barrowskillcount = 0 //Barrows kill-count
wave = 0 //Fight pit wave

[EQUIPMENT] //Items equipted on player
character-equip = 0 -1 1
character-equip = 1 -1 1
character-equip = 2 -1 1
character-equip = 3 -1 0
character-equip = 4 -1 1
character-equip = 5 -1 1
character-equip = 6 -1 0
character-equip = 7 -1 1
character-equip = 8 -1 0
character-equip = 9 -1 1
character-equip = 10 -1 1
character-equip = 11 -1 0
character-equip = 12 -1 1
character-equip = 13 -1 0

[LOOK] //Defult clothing worn by player
character-look = 0 0
character-look = 1 7
character-look = 2 25
character-look = 3 29
character-look = 4 35
character-look = 5 39
character-look = 6 44
character-look = 7 14
character-look = 8 7
character-look = 9 8
character-look = 10 9
character-look = 11 5
character-look = 12 0

[SKILLS]
character-skill = 0 1 0 //character-skill = # ## ###
character-skill = 1 1 0 // #=Skill no. - ##=Skill Level - ## Skill XP
character-skill = 2 1 0
character-skill = 3 10 1300
character-skill = 4 1 0
character-skill = 5 1 0
character-skill = 6 1 0
character-skill = 7 1 0
character-skill = 8 1 0
character-skill = 9 1 0
character-skill = 10 1 0
character-skill = 11 1 0
character-skill = 12 1 0
character-skill = 13 1 0
character-skill = 14 1 0
character-skill = 15 1 0
character-skill = 16 1 0
character-skill = 17 1 0
character-skill = 18 1 0
character-skill = 19 1 0
character-skill = 20 1 0
character-skill = 21 1 0
character-skill = 22 1 0
character-skill = 23 1 0
character-skill = 24 1 0

[ITEMS]
character-item = 0 996 100000 //character-item = # ## ###
character-item = 1 1732 1 //#=Item no. - ##=Item ID - ### Amount of Item
character-item = 2 555 200
character-item = 3 556 200
character-item = 4 557 200
character-item = 5 559 600
character-item = 6 1382 1
character-item = 7 1324 1
character-item = 8 842 1
character-item = 9 883 500
character-item = 10 381 100

[BANK]
character-Bank = 0 381 100 //character-Bank = # ## ###
//#=Bank no. - ##=Item ID - amount of Item

[FRIENDS]

[EOF]



I wont go into this too much, but if you have followed this guide so far, the rest is self explanatory :)





-How to make various Commands
What is a private server without commands? Like literally one of the key aspects of what defines a private server, that and the easy skills and money :P So now I am going to show you the basic formats of the commands so you can start implementing them your selves!

*Teleportation commands (My be hard to follow, so be warned!)
1. Open up your server folder and search for commands.java, and open it.
2. It shouldn't be too long to find it, but you should be looking for lines similar to this:


if (playerCommand.startsWith

3. Possibly a few lines under you should see a bracket like this }
And under the } press enter to make a new line, then add this line: (making sure you are keeping to the format)


if (playerCommand.equals("####")) {
c.getPA().startTeleport(##, ##, 0, "modern");
}

4. Changed these values as so.
#### = The name of your command (DO NOT put :: at the beginning, it will load it automatically)
## = The X & Y co-ordinate of your teleport destination

*Give item commands (e.g Starter Packs, barrage runes etc...)
1. Open up your server folder and search for commands.java, and open it.
2. It shouldn't be too long to find it, but you should be looking for lines similar to this:


if (playerCommand.startsWith

3. Possibly a few lines under you should see a bracket like this }
And under the } press enter to make a new line, then add this line: (making sure you are keeping to the format)


if (playerCommand.startsWith("####")
c.getItems().addItem(###, ##);
c.getItems().addItem(555, 2000);
c.getItems().addItem(556, 2000);
c.getItems().addItem(557, 2000);

4. Change these values as so.
#### = The name of your command (DO NOT put :: at the beginning, it will load it automatically)
### = Item ID
## = Amount of the item you wish to have (remember to input the ID as noted if it is a large amount of unstackerble items!)

*how to add player rights to commands
1. Open up your server folder and search for commands.java, and open it.
2. Search for the command you wish to add a players right to e.g


if (playerCommand.startsWith("RANDOM")
c.getItems().addItem(995, 1000)

3. Add this line


&& c.playerRights >= ####) {

To the end of your command like so:


if (playerCommand.startsWith("RANDOM") && c.playerRights >= ####) {
c.getItems().addItem(995, 1000)

4. Replace #### with the player right e.g 0,1,2,3,4,5





-TIPS
* Always remember to compile either your Server and/or Client (depending on witch file was modified) via the compiler.bat
* I would suggest spending at least 1-2 weeks playing around with various sources that other players have made, these can be found in the 317 download section
* I would suggest having some sort of brain on your shoulders, what I mean is, being rather good at mathematics & good'ish English skills
* You are expected to blow up a few sources, but it's all part of your learning experience
* If you are thinking about running/maintaining a good server, I would suggest reading through a java book e.g 'java for dummies'
* If you are confident enough to edit values in your server the most resourceful files are your client.java, config.java, CFG Folder etc
* Always keep a back-up, I would suggest backing up your source after any major successful updates
* To Find Item ID's, try looking in item.cfg in the CFG file! (95% of the time, the ID's are incorrect) Portable Item ID list included with tutorial)
* To Find NPC ID's, try looking in NPC.cfg in the CFG folder! (95% of the time, the ID's are incorrect) Portable NPC ID list included with tutorial)
* When searching for tutorials for Project Insanity, remeber to include the key word PI






Please suggest and tutorial you would like to see implemented below, I will be updating continually

Ambient
July 29th, 2011, 11:09
If you have a suggestion of tutorial you believe will help any newbies, please post below and I'll do my best to implement it.

And ty for the nice reviews so far :)

No form of Rep++ or thanks is needed, but If this thread is dying, a friendly bump would be appreciated!

FOR DELTASCAPE USERS: Only the registered members can see the link.

Rog3r
July 29th, 2011, 13:40
Looks pretty good!

It'll help out some of the new members on the forum. ;)

Beuner
July 29th, 2011, 13:45
Good job on this. Very usefull to new coders.

ThePanda
July 29th, 2011, 13:50
Very helpful, this should be stickied..

Prokachu
July 29th, 2011, 14:28
Wow, nice guide.

Ambient
July 29th, 2011, 23:00
Thankx for the nice reviews peoples, I'm planning on updating this with a new guide everyday or so :)

I c
July 29th, 2011, 23:09
Finally a nice indepth guide about how to change stuff in PI that new coders are always asking. Great job on this :)

Ambient
July 29th, 2011, 23:46
Finally a nice indepth guide about how to change stuff in PI that new coders are always asking. Great job on this :)

Much appreciated mate!

It's not that I hate them asking questions all the time, it's that I feel sorry for them getting flammed for asking a seemingly simple question which could be very difficult for them to figure out. We were all like that once :P

Ozzy
July 30th, 2011, 02:59
i always have this problem anyone want to help me fix D:?

Exception in thread "main" java.lang.NoClassDefFoundError: Jframe
Caused by: java.lang.ClassNotFoundException: Jframe
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Jframe. Program will exit.
Press any key to continue . . .

Wtf turmoil
July 30th, 2011, 03:04
Very nice. Seems like u spent a lot of time on this. Gj

Ambient
July 30th, 2011, 06:54
Have you done anything to your jframe.java? And if possible could you post your CMD in the correct format (helps me read it better) or a scree-shot?
Also if you could post your Jframe.java here and send me the link. Only the registered members can see the link.

Ambient
July 31st, 2011, 07:22
Bump.

Based
August 1st, 2011, 01:13
src\server\model\players\packets\Commands.java:373 : reached end of file while pa
rsing
}
^
src\server\model\players\packets\Commands.java:374 : reached end of file while pa
rsing

^
2 errors
Press any key to continue . . .

Help please :c

Ambient
August 1st, 2011, 04:56
src\server\model\players\packets\Commands.java:373 : reached end of file while pa
rsing
}
^
src\server\model\players\packets\Commands.java:374 : reached end of file while pa
rsing

^
2 errors
Press any key to continue . . .

Help please :c

The first error is due to a miss placed }
The second error I believe is cause by you typing → By accerdent. (Although I may be wrong)

You can tell What is wrong by looking at what the CMD is telling you e.g
src\server\model\players\packets\Commands.java is the class path, and it is telling you that the error resonates in your commands.java
The ^ points to the direct cause.

p.s just make sure your brackets are set correctly.

Based
August 1st, 2011, 05:14
The first error is due to a miss placed }
The second error I believe is cause by you typing → By accerdent. (Although I may be wrong)

You can tell What is wrong by looking at what the CMD is telling you e.g
src\server\model\players\packets\Commands.java is the class path, and it is telling you that the error resonates in your commands.java
The ^ points to the direct cause.

p.s just make sure your brackets are set correctly.

Ok, I keep on getting 1 error because IDK how to set the brackets correctly... :s

EDIT: It keeps saying there is an arrow in front of the bracket...

Ambient
August 1st, 2011, 07:52
Send me your commands.java via paste bin: Only the registered members can see the link. (the link)
Preferably the part that you added the command to and the whole file to see if you placed it right.

antiworth
August 1st, 2011, 17:31
try add a guide for adding and deleting objects in server - nice tut

Ambient
August 2nd, 2011, 04:48
Did I not already add that? Or do you mean the default global objects?

jordanxl
August 2nd, 2011, 05:05
dude i dnt know ho to do any of tht stuff and idk wht commands r could u make me a rsps?

BunanzaTheBunny
August 2nd, 2011, 07:19
Thanks , alot.

Im getting into coding , and im hoping to run my own RSPS someday. :D

Ambient
August 2nd, 2011, 07:31
dude i dnt know ho to do any of tht stuff and idk wht commands r could u make me a rsps?

My dear friend, It WILL take time time to get used to it, It took me a week or two to get the jish of how things work. I would suggest playing other private servers to get the gist of them aswel
As for me making you a private server, I'm tight on time and the best advice I can give you is download the Server and client that come's included with the guide, and save the .rar files and keep playing around with features while Following my guide. Wait a month and you will have everything in this guide memorised

Ambient
August 2nd, 2011, 07:32
Thanks , alot.

Im getting into coding , and im hoping to run my own RSPS someday. :D

It's good that you have an eager mind, with that and a bit of creativity, you can accomplish anything you set your mind on!

BunanzaTheBunny
August 2nd, 2011, 07:35
Thanks , my plan is to fool around with the client while continuing to learn HTML .

Ambient
August 2nd, 2011, 09:09
Thanks , my plan is to fool around with the client while continuing to learn HTML .

Good idea, it's how I learned and I know enough java to get me through the day :P
I am in all means a beginner aswel, but in the end arn't we all :)

Ambient
August 8th, 2011, 06:20
Relevant bump, for the newbies, 'ya know ;)

draugenscape
August 9th, 2011, 20:14
Woah! Now this is an amazing guide! Helped me out a lot! Thanks, mate.

Bookmarked as well. Might come in handy. =]

Ambient
August 9th, 2011, 21:37
NP dude :) I still flick through it when my brain decides to forget thing :D

ItalianMan
August 10th, 2011, 01:26
Thanks Man!

Ambient
August 11th, 2011, 04:13
No Probs

Cenarius
August 11th, 2011, 14:37
i've just registered and my main reason is that i wanna say :
Thank you :)

Ambient
August 11th, 2011, 23:14
i've just registered and my main reason is that i wanna say :
Thank you :)

No probs man, glad it helped, and GL on becoming a good coder!

Cenarius
August 12th, 2011, 11:05
No probs man, glad it helped, and GL on becoming a good coder!

Thanks i'll need that :D
i'm learning java too and i'll be done in a while, i'm good with operations, methods, classes ... but i'll keep learning until i get everything i need to be a rsps developer .. the problem is i dunno how much i need :/

do you know what level do i need to get to be a rsps developer ?
right now i understand the runescape code once i take a tour in it but the problem is ..
the runescape methods, i dunno where to get them ...
right now the only way in my mind is to check every single file and keep testing but that could be a pain in the ass, but is there is some kind of a library that explains what are the methods used in rsps and what do they require/return ??

that would be really helpful !

Ambient
August 12th, 2011, 22:07
Thanks i'll need that :D
i'm learning java too and i'll be done in a while, i'm good with operations, methods, classes ... but i'll keep learning until i get everything i need to be a rsps developer .. the problem is i dunno how much i need :/

do you know what level do i need to get to be a rsps developer ?
right now i understand the runescape code once i take a tour in it but the problem is ..
the runescape methods, i dunno where to get them ...
right now the only way in my mind is to check every single file and keep testing but that could be a pain in the ass, but is there is some kind of a library that explains what are the methods used in rsps and what do they require/return ??

that would be really helpful !

Well, I would presume that you can go into the snippet section and be able to add content without the knowledge of were things go, also if you are able to invelope your own content that you make your self into your server
And as for the RS methods, do you mean adding the methods the the RS developers make to add into the current RS? If so you'll probably have to write them your self :\

JavaTC
August 14th, 2011, 08:58
Great job, when are you adding global object spawning?

Ambient
August 14th, 2011, 20:29
When I get home :P Been meaning to

Ambient
August 17th, 2011, 04:52
Updated all links!

Mowgli
August 23rd, 2011, 02:42
Thanks, I'm trying to learn how to make a good server and this gave me a nice jump start. (:

minigreg8
August 23rd, 2011, 05:19
my compiler is working fine with other sources but not this one

minigreg8
August 23rd, 2011, 05:28
my compiler says could not find path specified when i open it

Ambient
August 23rd, 2011, 08:14
Reply to wall post

keeno96
August 23rd, 2011, 09:10
Hey, i'm loving this little tutorial on things, but i'm having a problem, when I run the client compiler it says "Path not specified" or something like that, and when I run the actual client, it says a bunch of errors.2053 Anything I can do to fix this ?

Ambient
August 23rd, 2011, 10:08
Yeah, The client has a tendency to not want to work with certain peoples computers :\ I'm sorry but I wouldn't know were to start tbh :\

keeno96
August 23rd, 2011, 10:10
Yeah, The client has a tendency to not want to work with certain peoples computers :\ I'm sorry but I wouldn't know were to start tbh :\

FFS, Please look around the internet on how to get it to work, I really want to use this.

Ambient
August 23rd, 2011, 10:23
I'll find you a link to the source I used before I fixed it up, this source still has 'some' bugs, but only 5 left, they are fairly simple to fix tbh
LINK (Only the registered members can see the link.)

keeno96
August 23rd, 2011, 10:24
I'll find you a link to the source I used before I fixed it up, this source still has 'some' bugs, but only 5 left, they are fairly simple to fix tbh
LINK (Only the registered members can see the link.)

The Client download doesn't work, It's been removed ..

Bill Andre
August 23rd, 2011, 10:26
Nice guide here, although i'm trying to move to 562's i'm sure this will help a lot of people.

Ambient
August 23rd, 2011, 21:02
The Client download doesn't work, It's been removed ..

Download the source, and try and use it with the client in this tutorial (Only the registered members can see the link.)

JuiceRSPS
August 24th, 2011, 03:41
Bravo, nice work.

Ambient
August 24th, 2011, 05:44
ty bravo

Asho Mac
August 28th, 2011, 07:33
Nice :). I'll be sure to use it.

Asho Mac
August 28th, 2011, 07:37
When I try to open the client+source I get this:

Only the registered members can see the link.

Help?

Ambient
August 28th, 2011, 08:04
Yeahp, I'm going to have to remake the server download in this tut since a few of you guys are having troubles :\

Oh Reaper
August 28th, 2011, 19:25
when i go to download JDK there's like 20 different things to dl, do i need to do all of them? :S

Ambient
August 28th, 2011, 20:57
when i go to download JDK there's like 20 different things to dl, do i need to do all of them? :S

Well there should be 38 that you have to download???

Kidin'
Here: Only the registered members can see the link.

Oh Reaper
August 28th, 2011, 22:06
so i have to download 14 different things? O___o

Ambient
August 29th, 2011, 04:51
so i have to download 14 different things? O___o

Mate :fp: I was kidding...
Go to the link that I posted earlier, that is the JDK you need to have :P

Oh Reaper
August 29th, 2011, 11:40
Yeah, i click that xD, it comes up with 14 different files i need to dl.

Elfbow
August 29th, 2011, 11:45
Mate :fp: I was kidding...
Go to the link that I posted earlier, that is the JDK you need to have :P
L0l'd :P

Ambient
August 29th, 2011, 21:22
L0l'd :P

^^ indeed :D

cerdo099
August 30th, 2011, 20:58
Hi there friend, thank you very much for the guide, is hard to read that kind of guides because i am speak spanish so is nothing of codes in spanish, good luck.

Arjann
August 30th, 2011, 21:08
Great Tut!

So what can you do about it if it cant find a specified file?

Ambient
August 30th, 2011, 22:23
Great Tut!

So what can you do about it if it cant find a specified file?

Could you elierate on that please?

caramel
August 30th, 2011, 23:54
the compiler dont work for me any reason why thanks

Ambient
August 31st, 2011, 04:50
the compiler dont work for me any reason why thanks

Could you post me your error?

caramel
August 31st, 2011, 15:15
pretty much its saying compling - project insanity please wait patiently... the system cannon find the path
specified press any key to continue . . .

Arjann
August 31st, 2011, 17:04
^

Yes, same error here.. Searched on internet, but can not find a solution, updating Java did not work either..

Verbz
August 31st, 2011, 20:29
thats for the pi source, im learning basics for coding atm, good job.

Ambient
August 31st, 2011, 20:45
pretty much its saying compling - project insanity please wait patiently... the system cannon find the path
specified press any key to continue . . .

The server compiler, or client compiler?

Arjann
August 31st, 2011, 21:46
Both Server and Client compiler does not work, but Server --> Run Server does work.

Verbz
August 31st, 2011, 23:06
edit your enviromental variables..

Only the registered members can see the link.


i believe this is what might be the problem.

Arjann
August 31st, 2011, 23:31
Did not work for me, thanks anyway

Skibby
September 1st, 2011, 02:06
I changed the ip on server.java to 127.0.0.1 then after i changed to my ip then my default gateway and i got error connection error each time :{

RandQm
September 1st, 2011, 02:28
I part of it is ripped from somewhere else,
but very nice, I can use this since im beginner in PI

Ambient
September 1st, 2011, 02:31
Was about to suggest setting up your inviromental variable :/ I downloaded the source and all compilers work for me?

Verbz
September 1st, 2011, 02:56
hmm try setting ur compiler to ur jre or jdk version? thats what i did and its works now.

Ambient
September 1st, 2011, 05:10
Well, I'm sure I just replaces the paths with javac .*java etc so it shouldn't matter, but if it does, then replace that entire line with the path

Arjann
September 1st, 2011, 16:29
I guess I messed my Environmental settings a little bit up, can someone help me with what I need to fill in?
Got Jre6 and Jdk jdk1.6.0_22

Ambient
September 1st, 2011, 21:33
Well you don't have to set your inviromental variables unless you have windows XP, witch is probably the problem if you have set them on vista or win7, if you have, just remove the paths

Arjann
September 1st, 2011, 21:39
Im on Vista,
So I have got to remove all the paths?
Or just the two in the guide?

Arjann
September 1st, 2011, 21:42
I removed the path, and the 2 classpaths but it still doesnt work

Auto Talker
September 1st, 2011, 21:45
This guide is very good. Well done.

Arjann
September 1st, 2011, 22:38
The compiler was to a different version, you have to edit it and do it to your own version!!
It works great now, but got some errors.
Think I did it wrong..

EDIT
Thanks so much for helping all, I worked out all the errors except one.
"Reached end of line while parsing."
I know it means like you are missing a bracket, but I couldn't find where.


if (playerCommand.startsWith("additem")) {
if (c.inWild())
return;
try {
String[] args = playerCommand.split(" ");
if (args.length == 3) {
int newItemID = Integer.parseInt(args[1]);
int newItemAmount = Integer.parseInt(args[2]);
if ((newItemID <= 20000) && (newItemID >= 0)) {
c.getItems().addItem(newItemID, newItemAmount);
System.out.println("ITEM Spawned: " + newItemID + " by: " + c.playerName);
} else {
c.sendMessage("No such item.");
}
} else {
c.sendMessage("Use as ::item 995 200");
}
} catch (Exception e) {

}
}

if (playerCommand.startsWith("setlevel")) {
if (c.inWild())
return;
for (int j = 0; j < c.playerEquipment.length; j++) {
if (c.playerEquipment[j] > 0) {
c.sendMessage("Please un-equip all items before use!");
return;
}
}
try {
String[] args = playerCommand.split(" ");
int skill = Integer.parseInt(args[1]);
int level = Integer.parseInt(args[2]);
if (level > 120)
level = 120;
else if (level < 0)
level = 1;
c.playerXP[skill] = c.getPA().getXPForLevel(level)+5;
c.playerLevel[skill] = c.getPA().getLevelForXP(c.playerXP[skill]);
c.getPA().refreshSkill(skill);
} catch (Exception e){}
}

if (playerCommand.equals("special")) {
if (!c.inWild())
c.specAmount = 10.0;
}
if(c.playerRights >= 6) { //Owner Commands
}
}

}

Ambient
September 1st, 2011, 23:24
Gimmie a sec to work it out

blaf80
September 2nd, 2011, 15:17
after i compiled and started to run your server it said this:
Running - Project Insanity
Please wait patiently...
Exception in thread "main" java.lang.UnsupportedClassVersionError: Server/server
: Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: server.Server. Program will exit.

What does it mean? o:

Arjann
September 2nd, 2011, 18:24
I fixed error, but all what I did isn't set.
So my spawn is still Edge, I am not the owner.. Etc.

Arjann
September 2nd, 2011, 22:34
Works awsome now,
Thanks

Ambient
September 3rd, 2011, 06:33
I forgot to fix the cheat engine and duel arena glitch, I'll post a fix soon, only for this forums because your all so nice :P

Arjann
September 4th, 2011, 00:10
Your awsome. :)

Ambient
September 4th, 2011, 01:38
Thankque very much :) Keep at it buddy (y)

H4444x
September 4th, 2011, 18:17
i have problem with i set me as owner level 3 and cant do on server :pickup :pnpc ::item anything why?

Ambient
September 4th, 2011, 21:48
Well, what is the right set for the command? I'm sure its not 3

lemo
September 5th, 2011, 04:43
How do i change the IP it connects too?

Also the compiler isnt working,


Compiling - Project Insanity
Please wait patiently. . .
The system could not find the path specified
Press any key to continue. . .l

FormationX
September 5th, 2011, 04:43
Quest Tab does not work! OMG

Ambient
September 5th, 2011, 08:38
How do i change the IP it connects too?

Also the compiler isnt working,

Search for 127.0.0.0 or 0.0.0.0 in the seach bar and client.java or server.java or maybe both will pop up, then go into those .java files and search for the IP
Also, make sure the file path in the compiler is correctly configured, and if your using XP, set your variables


Quest Tab does not work! OMG
What is not working with it?

Bloodah
September 5th, 2011, 08:43
Thankss for this :)

Ambient
September 5th, 2011, 09:57
NP's, keep it with the rest :D

RuneskyPenguin
September 5th, 2011, 10:07
Mine says cannot find java. 0-0 help.. post a link of how i can solve this.

Ambient
September 5th, 2011, 10:42
Post your error from your CMD so I can diagnose it fully?

lemo
September 5th, 2011, 18:40
Quote Originally Posted by lemo View Post
How do i change the IP it connects too?

Also the compiler isnt working,


Search for 127.0.0.0 or 0.0.0.0 in the seach bar and client.java or server.java or maybe both will pop up, then go into those .java files and search for the IP
Also, make sure the file path in the compiler is correctly configured, and if your using XP, set your variables

I searched those, nothing involving the IP showed up, I am using a XP so what would i set it as? JDK is 6 - 27 or something like that

Ambient
September 5th, 2011, 22:18
I searched those, nothing involving the IP showed up, I am using a XP so what would i set it as? JDK is 6 - 27 or something like that

Since your using XP, find a guide on how to set up your inviromental variables

tha ozi
September 7th, 2011, 16:34
nice guide mate :) but how you can bring a server online so everybody can plays it?

Bloodah
September 8th, 2011, 04:00
oo nice guide.

Ambient
September 8th, 2011, 23:02
Thanks alot people, hope it helped:cool:

Bigmac xD
September 11th, 2011, 20:52
How come it doesnt have commands file?..

Ambient
September 12th, 2011, 06:04
How come it doesnt have commands file?..

It loads commands from commands.java

Boolean
September 12th, 2011, 07:29
Nice job.

Kitty Of Hell
September 13th, 2011, 17:29
The home teleport fix does not work :/

kareemloser
September 13th, 2011, 17:50
nice job bro :)

thanks alots hehe... KEEP IT UP!!

Kitty Of Hell
September 14th, 2011, 15:47
Hey, when I want to edit my client name I get some weird ass error and I have to redownload the entire client or use a backup :(..

Ambient
September 14th, 2011, 20:41
Hey, when I want to edit my client name I get some weird ass error and I have to redownload the entire client or use a backup :(..

I'm pretty sure you edit the clients title via the RSinterface.java or some shit like that, post me your error and I'll do my best

Chad8812
September 17th, 2011, 04:21
how do i put my server ip in teh client so i can connect to my server?

Ambient
September 17th, 2011, 23:42
Look through the comment's, I have answered many times, I just am not familiar with the base and client anymore :\

LessQQmoarPewPew
September 19th, 2011, 02:14
When I attempt to run either the client or source they both give me the same message:
"Running - Project Insanity
Please wait patiently...
'Java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue..."
Any help? Also a reply somewhere along the lines "theres something wrong with your java" doesn't help me (I've had this reply before) I am looking for a specific reason and a solution to my problem! I have tried to follow atleast 10+ guides to making a server and none of them have worked for me, if anyone can help me that would be great!

Ambient
September 19th, 2011, 04:55
When I attempt to run either the client or source they both give me the same message:
"Running - Project Insanity
Please wait patiently...
'Java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue..."
Any help? Also a reply somewhere along the lines "theres something wrong with your java" doesn't help me (I've had this reply before) I am looking for a specific reason and a solution to my problem! I have tried to follow atleast 10+ guides to making a server and none of them have worked for me, if anyone can help me that would be great!

Are you using XP?
If you edit the compiler, can you see javac or a file location? if you see a file location, replace it with javac

FreePkz
September 25th, 2011, 04:09
I'm trying to make a tele command and I use this.

if (playerCommand.equals("donor")) && c.playerRights >= 4) { c.getPA().startTeleport(2095, 4428, 0, "modern");
}

But when I compile I get 4 errors? What am I doing wrong?

Okay I fixed it and compiled with no problems, but when I go onto my client and do the command it doesn't teleport me? I have my player rights set to 4 and everything. Why isn't it teleporting me?

Bigmac xD
September 25th, 2011, 04:10
^ lucky i don't even get compiler to work LOL idk what jdk i have when i downgraded to i think 1.6.27 it still didn't work FML =[]

Ambient
September 25th, 2011, 19:55
You don't need to downgrade, you need to change the JDK file path to javac
I might re-upload with the file paths changed

FreePkz
September 25th, 2011, 20:15
Ambient, do you know how I make it so it costs like Pk points to buy items like chaotics for examples from stores?

Ambient
September 26th, 2011, 04:42
Ambient, do you know how I make it so it costs like Pk points to buy items like chaotics for examples from stores?

Unforgivably buddy... Not by heart, I have pretty much quit RSPS till my next holiday, just don't have much time to sit down and develop servers. minecraft etm :P

but, I hae seen various tutorials of this topic, just look around a bit

FreePkz
September 26th, 2011, 04:49
Yeah it's cool I got it done now.

Ambient
September 26th, 2011, 08:39
Sweet as bruv (y)

iown2
September 26th, 2011, 21:36
as soon as i downloaded the client and souce i went and fix the compiler to my java virson and i got this from the source

Compiling - Project Insanity
Please wait patiently...
src\server\model\players\Client.java:225: unclosed string literal
sendMessage("@red@Welcome to ambientX);
^
src\server\model\players\Client.java:225: ';' expected
sendMessage("@red@Welcome to ambientX);
^
src\server\model\players\Client.java:226: not a statement
sendMessage("@Blu@Current stage of developement - @whi@[
ALPHA]");
^
3 errors
Press any key to continue . . .

if any could help let me know

Ambient
September 27th, 2011, 04:04
as soon as i downloaded the client and souce i went and fix the compiler to my java virson and i got this from the source

Compiling - Project Insanity
Please wait patiently...
src\server\model\players\Client.java:225: unclosed string literal
sendMessage("@red@Welcome to ambientX);
^
src\server\model\players\Client.java:225: ';' expected
sendMessage("@red@Welcome to ambientX);
^
src\server\model\players\Client.java:226: not a statement
sendMessage("@Blu@Current stage of developement - @whi@[
ALPHA]");
^
3 errors
Press any key to continue . . .

if any could help let me know

Did I upload my old source instead of a blank PI?
Fuck.
I'll re-upload.

but anyway to fix, go into client.java and search for sendMessage("@red@Welcome to ambientX);
When you find it, replace it with sendMessage("@red@Welcome to ambientX");

iown2
September 27th, 2011, 12:05
Did I upload my old source instead of a blank PI?
Fuck.
I'll re-upload.

but anyway to fix, go into client.java and search for sendMessage("@red@Welcome to ambientX);
When you find it, replace it with sendMessage("@red@Welcome to ambientX");thatnk you fixed it

Ambient
September 27th, 2011, 20:36
thatnk you fixed it

NP bro, change the name until I upload another server and client

Grimy Rannarr
September 28th, 2011, 23:09
waiting for blank ;P

iown2
September 30th, 2011, 00:01
add in tut on how to add custom items

Grimy Rannarr
September 30th, 2011, 06:03
hey dude did you add clean version download links yet?

Grimy Rannarr
September 30th, 2011, 06:18
am i the only one that got this with client?


Running - Project Insanity
Please wait patiently...
RS2 user client - release #317
java.lang.ArrayIndexOutOfBoundsException: 1
at Class36.methodCustomAnimations(Class36.java:65)
at Animation.unpackConfig(Animation.java:1710)
at client.startUp(client.java:7492)
at RSApplet.run(RSApplet.java:33)
at client.run(client.java:4686)
at java.lang.Thread.run(Unknown Source)
NPC.DAT : 1489108188
Called method225
NPC.IDX : 1489126980
Called method225

Ambient
October 1st, 2011, 07:39
UPDATE

Updated Server, is now an original PI server.
Have Fun (y)

Will update .bat's in the server to shortened context so you wont have to keep updating the file path's contently after a java™ update

@Grimy Rannarr
Unfamiliar with those errors :\
Try re-download?

Grimy Rannarr
October 1st, 2011, 20:16
downloaded from the new link, i still get it =/

the client still works tho

Ambient
October 1st, 2011, 21:48
am i the only one that got this with client?

Those are telling you what is being called apon when the client is loaded. I think.
Just ignore them

Grimy Rannarr
October 1st, 2011, 22:10
hey when i log in how come i dont get the welcome messeges, do i need to add a yell command for it to work? =/

Ambient
October 1st, 2011, 23:42
hey when i log in how come i dont get the welcome messeges, do i need to add a yell command for it to work? =/

Go into client.java, search for //sendMessage ("")} or something like that, I left 8 spaces for welcome messages, just uncomment the line and add your message in-side the ""

Grimy Rannarr
October 2nd, 2011, 01:37
dont work o_O

Ambient
October 2nd, 2011, 19:51
Take out the //

Grimy Rannarr
October 2nd, 2011, 22:51
i did,

but yah i got it fixed, i made a mistake :-s

thanks :P

Ambient
October 3rd, 2011, 03:57
np bro

Ambient
October 4th, 2011, 06:52
UPDATE!

Finally completed this gigantic guide!
Fixed a few things, tidied it up, added 2 more tut's, look's far more presentable :)
Have fun folks!

-ambient

Galionknight
October 12th, 2011, 02:33
Omfg I love you man (No homo). Great tutorial of which will help people like me a-lot.

Ambient
October 12th, 2011, 04:03
Omfg I love you man (No homo). Great tutorial of which will help people like me a-lot.

If only I got paid from some rich dude every time someone said "Omfg I love you man (No homo)."

Thanks for the appreciation everyone (y)

In other news I Been playing around with DeltaScape for 2 weeks now, I will make a noob guide on delta scape soon

white 101
October 16th, 2011, 23:55
If only I got paid from some rich dude every time someone said "Omfg I love you man (No homo)."

Thanks for the appreciation everyone (y)

In other news I Been playing around with DeltaScape for 2 weeks now, I will make a noob guide on delta scape soon


I love you alot for this guide, but I just have one question. Whenever I use the
[2]. Compile Server
Instead of compiling, it gives me this screen
"Compiling = Project Insanity
Please wait patiently...
'java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . ."

I can compile other servers, but for some reason not this one.

Any help would be appreciated :).

Ambient
October 17th, 2011, 04:33
Edit your compiler, find javac and replace it with "C:\Program Files\Java\jdk1.6.0_27\bin\javac.exe"

white 101
October 18th, 2011, 02:09
Edit your compiler, find javac and replace it with "C:\Program Files\Java\jdk1.6.0_27\bin\javac.exe"

I have the 1.7.0 java, so I changed it to that, but when I compile, it goes to this screen :
i.imgur.com/MPtjG.png

Is this the right screen, or no?

Ambient
October 18th, 2011, 04:05
imgur isn''t working so I cant look at the pic, but if it looks like this:
Only the registered members can see the link.
Then your sweet

Bug
October 19th, 2011, 22:52
Oh. My. Gawsh.? Nice tut bro :) Although, I just came here for the downloads;
Sticky Pl0xz?

mizzat420
October 22nd, 2011, 05:26
ok im verry new at rsps so im trying to set a message in client.jav in the server folder put it dont show up when i log on i have this //sendMessage("Welcome!"); put it dont show up when i log in

ROFL feel so stupid.... had to remove the // XD

Ambient
October 22nd, 2011, 09:15
Ye man, it's ok :) Comments got me, same applys to



//




/*
*
*/




///*
*
*///




///


If you would like to read into them some more, read though this (Only the registered members can see the link.)

Jonas
October 22nd, 2011, 09:50
kuhl tutorial it'll help alot of ppl i guess

Ambient
October 23rd, 2011, 08:38
Cheers bro, that is the whole point :)
Still wanting to finish my Delta Tut but it's foreign land for me, such a big difference :|

ICum
October 23rd, 2011, 08:44
Thanks for the tutorial.

csf1998
October 24th, 2011, 21:04
it wont let me edit it it says its in view mode

Ambient
October 25th, 2011, 03:48
View mode?
As in you can open the files and not edit them?
Mate your probably browsing the files while there still in win rar state, extract them :P

mizzat420
October 25th, 2011, 06:37
thanks for the awsome tut ^^

PI Coder
November 3rd, 2011, 11:07
Chaning the drop rate...


#Man drops
1:1 995:100 554:100


If 995 is the item and 100 is the drop rate, how will i change the ammount o items dropped? like 10k?

Ambient
November 3rd, 2011, 19:41
I wouldn't have a clue, trust me, PI's doors and NPC drops are so difficult..
I'm sorry dude :\

Xerox
November 3rd, 2011, 19:49
Chaning the drop rate...


#Man drops
1:1 995:100 554:100


If 995 is the item and 100 is the drop rate, how will i change the ammount o items dropped? like 10k?

It looks like the 1:1 might describe it.


Look for something that drops more than two items, and not all at once. Like a dragon, who always drops bones + hide, but sometimes other stuff.

Deerfoot
November 12th, 2011, 22:12
this is helping me loads! thanks a lot :D

Verbz
November 15th, 2011, 17:35
Edit your compiler, find javac and replace it with "C:\Program Files\Java\jdk1.6.0_27\bin\javac.exe"

i have tried this, it says this -


Compiling - Project Insanity
Please wait patiently...
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

I R SAD
November 15th, 2011, 17:46
Think you need to set your right path to JDK?

Ambient
November 15th, 2011, 20:09
Think you need to set your right path to JDK?

I'm pretty sure it does it automatically on OS above XP.

docter232
December 10th, 2011, 02:47
Thank you so much for this, I am quite new to this experience wise, because I have made many mistakes when it comes to coding and completely destroyed some good sources, but this, with a few other tutorials got me an amazing source with 150 max level at 100,000,000 xp and all current RS items up to Torva. So in conclusion THANK YOU!!!

With No Cost
December 10th, 2011, 05:31
This the most helpful tutorial in the history of RuneLocus, this'll get more people into Private Servers, I myself have learnt a lot from this , thanks a lot for the post.

AndrewBlakeM
December 10th, 2011, 05:54
This is infact a great thread. I am excited to start learning how to code! I have downloaded the Client and Source and the Item, Npc, and co-or ID's. But I'm completely new, and one thing I need help with is logging in! I ran the client and when I tried to log in it said "Error Connecting to Server". How to I get the server online? Are there tutorials for that? I can't find one. Thanks a lot to anybody who can help me!

rrooaarr
December 10th, 2011, 17:29
just wondering how can u edit the price multiplier for the prices.txt file? anything wieldable is multiplied by 1.149 and idk how to change it

Ambient
December 10th, 2011, 20:57
just wondering how can u edit the price multiplier for the prices.txt file? anything wieldable is multiplied by 1.149 and idk how to change it

Look in itemasstant.java and look for *1.15 or something like that and change it to 1.10



This is infact a great thread. I am excited to start learning how to code! I have downloaded the Client and Source and the Item, Npc, and co-or ID's. But I'm completely new, and one thing I need help with is logging in! I ran the client and when I tried to log in it said "Error Connecting to Server". How to I get the server online? Are there tutorials for that? I can't find one. Thanks a lot to anybody who can help me!

Run the server aswel

I Need Guides
December 11th, 2011, 14:27
Okay i got problem when runnning the client



Running - Project Insanity
Please wait patiently...
RS2 user client - release #317
java.lang.ArrayIndexOutOfBoundsException: 1
at Class36.methodCustomAnimations(Class36.java:65)
at Animation.unpackConfig(Animation.java:1710)
at client.startUp(client.java:7492)
at RSApplet.run(RSApplet.java:33)
at client.run(client.java:4686)
at java.lang.Thread.run(Unknown Source)
NPC.DAT : 1489108188
Called method225
NPC.IDX : 1489126980
Called method225
Error: T1 - 123,0 - 36,36
3

Teapot
December 13th, 2011, 19:04
Great Job On this bro. Newbies will enjoy it alot

Pray For Me
December 17th, 2011, 15:08
You made this just for me huh? lol
Im having problems with loading my client,
ill load it, click somewhere, and it disconnects and cuts it off on me.
The server is still running but the client went away like i clicked the X,
Please help with a pm as im not on forums much except to read good guides like this :p

high105
December 17th, 2011, 15:11
You made this just for me huh? lol
Im having problems with loading my client,
ill load it, click somewhere, and it disconnects and cuts it off on me.
The server is still running but the client went away like i clicked the X,
Please help with a pm as im not on forums much except to read good guides like this :p
Are you on a windows7
Or a 64 bit?

Dathm
December 24th, 2011, 15:36
Friendly bump.

Ambient
December 26th, 2011, 20:23
tyvm :)

exiled
December 27th, 2011, 02:08
If you have a suggestion of tutorial you believe will help any newbies, please post below and I'll do my best to implement it.

And ty for the nice reviews so far :)

No form of Rep++ or thanks is needed, but If this thread is dying, a friendly bump would be appreciated!

FOR DELTASCAPE USERS: Only the registered members can see the link.


- Maybe adding a solution to these questions

" My compiler doesn't work? " and or, " My run doesn't work? "
Idk just something that can be helpful ^.^

Helpful guide tho! c:

Griingo
December 28th, 2011, 00:05
This is pretty nice, im new and I had no trouble figuring any of it out with this guide. I just dont seem to like 317 that much I want to be able to use Torva and Primal on my server, as well as God Wars and Nex... Stuff like that, the new Dominion and skills, so could you give me some info on that and where to start?

Ambient
December 28th, 2011, 20:54
I wouldn't suggest going past 508, but I would recommend sticking with 317 since a lot of resources have been prepared and released over many years, you can also load newer revision data so you can have your new skills, items & mapping

godiam
January 7th, 2012, 19:55
How would I go about making a shop accepting an item that isn't gold as currency?

Ambient
January 7th, 2012, 20:41
How would I go about making a shop accepting an item that isn't gold as currency?

As in tokens?
I wouldn''t know of the top of my head, but I could imagine it would be something like



case ####:
c.getPA.openShop;
variableToAcceptTokens


There will be tuts on this :)

godiam
January 7th, 2012, 21:37
As in tokens?
I wouldn''t know of the top of my head, but I could imagine it would be something like



case ####:
c.getPA.openShop;
variableToAcceptTokens


There will be tuts on this :)

Yes, thanks.

Bleustar
January 7th, 2012, 21:40
Can somebody help me? idk how i have to start to make my own server! ;) thank you:p

Tokintrees
January 7th, 2012, 22:56
this might be a dumb question but when i try to run the client it says:


Running - Project Insanity
Please wait patiently...
Error: Could not find or load main class Jframe
Press any key to continue . . .


and when i run the client compiler i get 74 errors?

The server compiler and run work fine though.

Skin
January 8th, 2012, 01:06
Thanks some great tips in here.

elshin kata
January 12th, 2012, 06:41
Thanks for this awesome tutorial! I just got started with RSPS, and this is just what I needed. This question is a bit out there, but I'm hoping your or someone reading this might have an answer. Is there a way to remove objects that come with the game map? For example, I want to remove a building from Edgville. Do you know how to do that?

Again, thanks for the awesome tutorial =)

IRoss
January 13th, 2012, 16:39
Maybe give a link on how to portforward guide to help newbies?

Xetoc
January 15th, 2012, 15:59
Wow! This helped me a lot. This might help new coders..

YonasKalei
January 16th, 2012, 22:30
there is no run.bat in serverfiles

storm powner
January 26th, 2012, 14:27
nice guide dude, it helpd me alot, thanks for you :)

authorize 4ell
February 8th, 2012, 01:34
Okay i think this is by far the best guide ive ever seen and ive been to mopar ( sucks ) youtube ( 50%) THIS 100000000%
if i make my own server and this is as helpful as i think it will be i will be glad to make you co-owner.

I Am Legacy
February 8th, 2012, 17:42
Hey bro, i have found one glitch. Teleport commands teleport you fine but deletes all the npcs. So i use home teleport and all my shops are there but when i use ::home they are all gone. i have tried to fix this myself using player assistant ect but being quite new to coding im not yet at a level i can fix this myself :( So some help would be great! Thanks

Harrison1264
February 10th, 2012, 02:58
dude forreal tho ima try this cuz most rsps suck and i feel like making one be fun and hard but if i follow ur guide maybe i can make sumthing good ty

i fixed my compiler prob. but whent it loads the in game seems laggie lol. please reply

tobold
February 13th, 2012, 16:48
Can help me with this error? I was going to add a shop when:

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NumberFormatException: For input string: "19 Father_A
ereck's_Prayer_Shop 1 1 245 100 536
100 532 100 526 500 542 100 543 50 544
50 1718 50"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at server.world.ShopHandler.loadShops(ShopHandler.jav a:140)
at server.world.ShopHandler.<init>(ShopHandler.java:45)
at server.Server.<clinit>(Server.java:63)
Could not find the main class: server.Server. Program will exit.

Ambient
February 21st, 2012, 03:17
You need to compile with the latest JDK

Verbz
February 21st, 2012, 15:49
thanks for this great advice and looked like a lot of effort has gone into it! can you help me with my shops? giles doesnt open and i really dont know how to fix it.. also is what is the client, galkons?

antiworth
February 21st, 2012, 16:23
Can help me with this error? I was going to add a shop when:

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NumberFormatException: For input string: "19 Father_A
ereck's_Prayer_Shop 1 1 245 100 536
100 532 100 526 500 542 100 543 50 544
50 1718 50"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at server.world.ShopHandler.loadShops(ShopHandler.jav a:140)
at server.world.ShopHandler.<init>(ShopHandler.java:45)
at server.Server.<clinit>(Server.java:63)
Could not find the main class: server.Server. Program will exit.
make sure u used tabs, not spaces

r avv e n
February 25th, 2012, 22:21
amazing guide, its helped me so much so far!

Dark Fog
February 28th, 2012, 13:50
What number you need in face for north,south,east and west?

Ambient
March 6th, 2012, 00:48
PI Doesn't support NPC facing, my PI evolved does though

ijakeybear
March 13th, 2012, 09:59
im a NOOB can anyone help me code my 317 any help is appreciated, my skype is - jake.furgan

Tortoise
March 18th, 2012, 15:02
How do I give myself the right to spawn? I'm having trouble with that. :(

Rasclart
March 21st, 2012, 11:33
its a good guide but i can't seem to get the compiler to work? :confused:

automatic
March 25th, 2012, 17:01
This Guide is beast.

jackcoulson
March 31st, 2012, 18:08
looks pretty nice, it will help the beginners alot :)

0k03n0
April 18th, 2012, 18:05
When i login to a source. It says

remember to type ::vote every 24 hours for a great reward!

and 2 others ( its like the login server message )

I want to change that, but i cant find 1 single document to change it. can someone help?

Dirty Will
April 18th, 2012, 19:23
Now that's an amazing guide. Never seen anyone put that much effort into a guide. Like the effort :)

poesy700
April 18th, 2012, 19:38
Wow i feel so emberrased my favourites bar actualy looks like that :S

Only the registered members can see the link.

Hannibal
June 8th, 2012, 01:51
great tut and very useful for beginners, this should be classified as sticky!

jesus2007
July 19th, 2012, 12:36
best guide ever deserves a bump

jesus2007
July 20th, 2012, 15:55
ii love your guide but changing drop rates doesnt work for me

dyl4n20
July 26th, 2012, 02:46
when i change my max level the top level like 135/135 the top one drops, any help?

jordanstr
August 4th, 2012, 20:34
thanks alot this really helped <3

tbarrowst
August 8th, 2012, 05:28
ty bro
shhh #bump

Ambient
October 9th, 2012, 22:16
Bump since I never come on these forums

Countryboyaj
October 11th, 2012, 02:16
I've got a 317 server... it has no playerassistant.java... only playermanager.java and player.java....

What would I do to add starter packs then...? :(

jitinder
March 25th, 2013, 10:22
Ambient please help me, i want to be able to get money with commands so this is what i wrote,

if (playerCommand.startsWith("money")
c.getItems().addItem(995, 200000);
it doesn't work, please help...
and btw is there a way for owner to be able to spawn. if yes please tell it.

thanx

Ultrascaped
March 31st, 2013, 13:46
Nice and clean guide, thanks!

Ultrascaped
March 31st, 2013, 13:47
jitinder, you forgot the brackets {}

if (playerCommand.startsWith("money"){
c.getItems().addItem(995, 200000);
}

good luck!

UmA Hustler
April 1st, 2013, 17:51
Ill try to get some help here since Trolls keep attacking me on other posts. My characters file saves the characters as .dat not .txt. SO, i can only read the name and password and nothing else. All the rest is just unreadable. Help me please :D

Ocaniti
April 2nd, 2013, 05:48
Ill try to get some help here since Trolls keep attacking me on other posts. My characters file saves the characters as .dat not .txt. SO, i can only read the name and password and nothing else. All the rest is just unreadable. Help me please :D

Yea most people think that you should already know what to do. After all they were NEVER in the same boat as you lol. To me most of the post I read is one person trying to out smart the last person that posted. The ones trolling you probably don't even know how to help you so they feel the need to troll. If i could help I would but I don't know squat about your situation. The client/source on the OP's 1st post is what I am using and it has the player files as txt

On a side note... Wish the OP would add "How to add custom mining area." I refer back to this tutorial when messing around with my local server. I added a couple Rune Ore spots but they are not mine-able for some odd reason. No error on compiling nor error on clicking the spots. *nevermind I was using the wrong ID. Runite ids' are 14859 and 14860*

*edit*Replied to your post on the other thread. Should help you out.

UmA Hustler
April 4th, 2013, 17:06
Yea most people think that you should already know what to do. After all they were NEVER in the same boat as you lol. To me most of the post I read is one person trying to out smart the last person that posted. The ones trolling you probably don't even know how to help you so they feel the need to troll. If i could help I would but I don't know squat about your situation. The client/source on the OP's 1st post is what I am using and it has the player files as txt

On a side note... Wish the OP would add "How to add custom mining area." I refer back to this tutorial when messing around with my local server. I added a couple Rune Ore spots but they are not mine-able for some odd reason. No error on compiling nor error on clicking the spots. *nevermind I was using the wrong ID. Runite ids' are 14859 and 14860*

*edit*Replied to your post on the other thread. Should help you out.

glad you share my view :p best of luck to you im having special attack issues >.< ill figure it out eventually been using file set ups from this combined with others lol

anthonyits420
April 9th, 2013, 06:19
nice guide

Countryboyaj
April 10th, 2013, 21:54
Nevermind I found my starterpacks in [PI] ;)

layolan
April 15th, 2013, 01:26
I can't find any of these files. I downloaded your links and am in the server folder but I can't find "commands.jar" or "config.jar" or anything. What le fuck.

christopherchannell
April 23rd, 2013, 21:44
I get mostly all this now except the drop rates. Say I wanted to make a whip drop only 1:100 times how would I do that?

dremdream
April 24th, 2013, 00:13
thanks you it's very useful for someone like me and i was looking for clean source+client to test coding and here it is thanks you !

callumdunn
May 4th, 2013, 13:04
Thanks, I need help ASAP.

What does:

mean?

callumdunn
May 4th, 2013, 13:04
fffs it wont work

callumdunn
May 4th, 2013, 13:05
ahh needed 2 posts, sorry for the triple post (if against the rules)

Only the registered members can see the link.

ilyamanda
May 19th, 2013, 19:28
very nice tut!:) Just one thing about changing your home spawn. I did everything properly and i saved the notepad and compiled. But the beginner spawn,respawn,and home tele spawn still have not changed their still the same.

TheWireless
July 4th, 2013, 14:05
I've done this tutorial until giving new-commers items, tried compiling, it gave this error and when I logged-in to my rsps with a new account, it gave the old-configured items.

This is the compile error:

error: Class names, 'server.GUI', are only accepted if annotation processing is
explicitly requested
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .


Also; check these threads too:
Only the registered members can see the link.
Only the registered members can see the link.!

RanTzzzu
July 5th, 2013, 21:06
Okey , very helpful!

Batman1403
July 7th, 2013, 14:17
[Pi] How Can I Change The Weapon Damages in item.cfg ?

dragonfury
July 19th, 2013, 21:52
i tried editing like you said in the tut , but when i check the client nothings changed , also i get this message when i click on compile:

"Running - Project Insanity
Please wait patiently...
'Javac' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue..."

please help me thanks

Koyle
July 31st, 2013, 23:20
thanks this has helped a lot :p

Twizzz
August 5th, 2013, 20:17
Very well done on your 317 noob's guide, really helped me out.
Could you tell me how i can edit the skills players start with?
Also, i searched for 'The Bank of RuneScape' so i could change it to my server's name,
tho it didnt find anything.

Thanks for your time
~Twizz

RuneNexus
August 6th, 2013, 05:24
bitch. :P

RuneNexus
August 6th, 2013, 05:27
ewetwe

vironflo
August 6th, 2013, 20:43
hello, when i try to run the client , i have a problem with jframe

Could you help me?

when i open jframe:

import sign.signlink;
import java.net.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
import javax.swing.plaf.metal.MetalLookAndFeel;


public class Jframe extends client implements ActionListener {

private static JMenuItem menuItem;
private JFrame frame;

public Jframe(String args[]) {
super();
try {
sign.signlink.startpriv(InetAddress.getByName(serv er));
initUI();
} catch (Exception ex) {
ex.printStackTrace();
}
}

public void initUI() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAn dFeelClassName());
JPopupMenu.setDefaultLightWeightPopupEnabled(false );
frame = new JFrame("Project Insanity");
frame.setLayout(new BorderLayout());
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
JPanel gamePanel = new JPanel();

gamePanel.setLayout(new BorderLayout());
gamePanel.add(this);
gamePanel.setPreferredSize(new Dimension(765, 503));

JMenu fileMenu = new JMenu("File");

String[] mainButtons = new String[] { "Project-Insanity.net", "-", "Exit" };

for (String name : mainButtons) {
JMenuItem menuItem = new JMenuItem(name);
if (name.equalsIgnoreCase("-")) {
fileMenu.addSeparator();
} else {
menuItem.addActionListener(this);
fileMenu.add(menuItem);
}
}

JMenuBar menuBar = new JMenuBar();
JMenuBar jmenubar = new JMenuBar();

frame.add(jmenubar);
menuBar.add(fileMenu);
frame.getContentPane().add(menuBar, BorderLayout.NORTH);
frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
frame.pack();

frame.setVisible(true); // can see the client
frame.setResizable(false); // resizeable frame

init();
} catch (Exception e) {
e.printStackTrace();
}
}

public URL getCodeBase() {
try {
return new URL("Only the registered members can see the link." + server + "/cache");
} catch (Exception e) {
return super.getCodeBase();
}
}

public URL getDocumentBase() {
return getCodeBase();
}

public void loadError(String s) {
System.out.println("loadError: " + s);
}

public String getParameter(String key) {
return "";
}

private static void openUpWebSite(String url) {
Desktop d = Desktop.getDesktop();
try {
d.browse(new URI(url));
} catch (Exception e) {
}
}

public void actionPerformed(ActionEvent evt) {
String cmd = evt.getActionCommand();
try {
if (cmd != null) {
if (cmd.equalsIgnoreCase("exit")) {
System.exit(0);
}
if (cmd.equalsIgnoreCase("Project-Insanity.net")) {
openUpWebSite("Only the registered members can see the link.");
}
}
} catch (Exception e) {
}
}
}

Wajdi
August 8th, 2013, 10:24
I got my server pack from RuneLocus Starter Pack, and there is Edgeville is the starting location..
I got the coordinates for Barbarian Village, changed the starting location, spawn location, home teleport location to Barbarian Village coordinates and tried to compile the server and it said "Server was Compiled"
Logged in new account, but it started at Edgeville, Teleported to Home, it teleported to edgeville...
How mine looks:

public static final int START_LOCATION_X = 3082; // start here
public static final int START_LOCATION_Y = 3420;


public static final int RESPAWN_X = 3082; // when dead respawn here
public static final int RESPAWN_Y = 3420;


But it stills at Edgeville, why?????

I also changed the Starting Message (setSidebarInterface) and saved and compiled the server and logged in then with localhost but still the same.. Welcome to Project-Insanity.

laurio
August 8th, 2013, 23:06
Thanks for the help :)

JustTesting
August 8th, 2013, 23:17
Let me just say Thank You for the tutorial... Now how do I do this without sounding like a total NOOB..... OH well I am :-) I have got this to work without a hitch because of your tutorial locally, however; I can not for the life of me get it to work with my friend who is not on my network. I have done the port forwarding (on my Arris wireless EMTA), I have no-ip setup and running, I sent my friend the client after I changed the IP to my address (example rsprivates.no-ip.biz)..... I must be missing something cause he can't connect..

When I extract my source files they are in like this on my pc C:\Users\myname\Desktop\Testing\[PI] Server\[PI] Server and my client is C:\Users\name\Desktop\Testing\[PI] Client\[PI] Client Those are the folders that contain the first run.bat and compile.bat Do I need to move them somewhere else or does it matter?

Thanks in advance

Wajdi
August 9th, 2013, 10:21
Each time I edit anything and then compile server and run server, then go to my client to see if it worked, nothing happens...
The home teleport still the same, the starting area still the same...
why ;/?

legend 1234
August 9th, 2013, 15:50
I got my server pack from RuneLocus Starter Pack, and there is Edgeville is the starting location..
I got the coordinates for Barbarian Village, changed the starting location, spawn location, home teleport location to Barbarian Village coordinates and tried to compile the server and it said "Server was Compiled"
Logged in new account, but it started at Edgeville, Teleported to Home, it teleported to edgeville...
How mine looks:

public static final int START_LOCATION_X = 3082; // start here
public static final int START_LOCATION_Y = 3420;


public static final int RESPAWN_X = 3082; // when dead respawn here
public static final int RESPAWN_Y = 3420;


But it stills at Edgeville, why?????

I also changed the Starting Message (setSidebarInterface) and saved and compiled the server and logged in then with localhost but still the same.. Welcome to Project-Insanity.

You also need to go down to where it says:

/**
* Glory
*/
public static final int EDGEVILLE_X = 2606;
public static final int EDGEVILLE_Y = 3102;

and change that to your coords too! like my coords there are Yanille for example.

So that will change the home teleport in your spellbook to where you want it.

Wajdi
August 9th, 2013, 16:46
You also need to go down to where it says:

/**
* Glory
*/
public static final int EDGEVILLE_X = 2606;
public static final int EDGEVILLE_Y = 3102;

and change that to your coords too! like my coords there are Yanille for example.

So that will change the home teleport in your spellbook to where you want it.

Its says in the topic to change the LUMBY not the EDGEVILLE, but my home teleport is EDGEVILLE, so I change EDGEVILLE not LUMBY, right?

If you could send me your skype, we could talk there.

legend 1234
August 10th, 2013, 02:20
well just change one of them and see if it works, if not change the other one! trial and error ;)

Blauwebeer
September 7th, 2013, 11:29
Does anyone know why I can't increase the max xp past 214,748,364? I should be able to increase the xp to 2,147,483,647 right? But in-game it always stops at 214,748,364.

Trilla
September 7th, 2013, 12:02
Does anyone know why I can't increase the max xp past 214,748,364? I should be able to increase the xp to 2,147,483,647 right? But in-game it always stops at 214,748,364.

What type of variable is it using.

Blauwebeer
September 7th, 2013, 13:12
Actually I solved that problem, but now I'm curious about the maximum level. Once I level past 135 it starts to get all buggy and the levels don't work properly. Any way to make 135+ work?

PlayerAssistant.java:


public int getXPForLevel(int level) {
int points = 0;
int output = 0;

for (int lvl = 1; lvl <= level; lvl++) {
points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
if (lvl >= level)
return output;
output = (int)Math.floor(points / 4);
}
return 0;
}

public int getLevelForXP(int exp) {
int points = 0;
int output = 0;
if (exp > 2000000000)
return 150;
for (int lvl = 1; lvl <= 150; lvl++) {
points += Math.floor((double) lvl + 300.0
* Math.pow(2.0, (double) lvl / 7.0));
output = (int) Math.floor(points / 4);
if (output >= exp) {
return lvl;
}
}
return 150;
}

public boolean addSkillXP(int amount, int skill){
if (amount+c.playerXP[skill] < 0 || c.playerXP[skill] > 2000000000) {
if(c.playerXP[skill] > 2000000000) {
c.playerXP[skill] = 2000000000;
}
return false;
}
amount *= Config.SERVER_EXP_BONUS;
int oldLevel = getLevelForXP(c.playerXP[skill]);
c.playerXP[skill] += amount;
if (oldLevel < getLevelForXP(c.playerXP[skill])) {
if (c.playerLevel[skill] < c.getLevelForXP(c.playerXP[skill]) && skill != 3 && skill != 5)
c.playerLevel[skill] = c.getLevelForXP(c.playerXP[skill]);
levelUp(skill);
c.gfx100(199);
requestUpdates();
}
setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]);
refreshSkill(skill);
return true;
}

And Player.java:


public int getLevelForXP(int exp) {
int points = 0;
int output = 0;

for (int lvl = 1; lvl <= 150; lvl++) {
points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
output = (int)Math.floor(points / 4);
if (output >= exp)
return lvl;
}
return 150;
}

97010283
October 3rd, 2013, 19:47
Hello,

I was reading into your topic : "317 Complete NOOB 'Project Insanity'Guide "
I have a question : witch folder is it ? .java ? I can't find it :confused:

See this:
-How to edit player in-game attributes (Skill level, rights, bank items etc...)
1. Open up your server folder and search for your character folder & locate the desired user you would like to edit, and open it.
2. It should look like something similar to this



I wait for your anser !!

Sorry for my bad english, I am form the Netherlands.

alcapone
December 1st, 2013, 19:44
I tried changing the max level and I did exactly as you did yet nothing changed? I compiled server like you said and I am unsure what I did wrong. Could you please help?