Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2002, 05:16 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default Please Post Snippets Or Diffs

...of code you change.. otherwise we have to diff our files which have other modifcations, and find what you changes, THEN merge it..try something like this
/zone/client.cpp(path/file..make sure you include path):4567(line number to start)
Code:
pp.aapoints = atoi(sep.arg[1]);
message << "Set your AA Points to: " << pp.aapoints << endl;
makes it much easier on us to merge it

If you are changing the lines of code, also paste the block(s) of corresponding orginal source(from the zip) .. also.. i just made the above example up, don't do it
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #2  
Old 08-24-2002, 10:03 AM
Shawn319
Demi-God
 
Join Date: Jan 2002
Posts: 2,073
Default

StarTeam has a built in "Visual Diff" and "Visual Merge" tool we use all the time (on top of using ST for our CVS).. if you want these tools you can download StarTeam at www.starbase.com and get an evaluation key..

On the other hand, i'm sure there are hundreds of other similar tools that do the same job (maybe even better).
__________________
Shawn319
Semi-Retired EQ Addict

(Retired)EQEmu Lead Tester
(Retired)EQEmu Tech Support

(Retired)Host/ServerOP - [LIVE] Official EQEmu Test Server
(Retired)Host/ServerOP - Shawn319's All-GM Dev Test Server
(Retired)ServerOP - EQEmu Beta Server
(Retired)ServerOP - GuildWars Server
(Retired)ServerOP - Raid Addicts
--------------------------
Reply With Quote
  #3  
Old 08-24-2002, 02:52 PM
Aspirax
Sarnak
 
Join Date: Aug 2002
Posts: 88
Default

Sorry, I do all my programming under Unix.

I can use diff, you need to tell me what kind you want.
Reply With Quote
  #4  
Old 08-25-2002, 05:00 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

diff -uBb clean changed > blah
obviously, paste blah
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #5  
Old 09-10-2002, 12:25 PM
solar
Fire Beetle
 
Join Date: Sep 2002
Posts: 8
Default Patch for rogue assassination ability.

I do all my work with unix stuff, only reason I even boot windows is to run the eq client, so this is a diff, if it's not acceptable i can send the modified files.

This thing won't let me just attach files, so here's an URL:
http://www.heliacal.net/~solar/misc/rogue.patch
Reply With Quote
  #6  
Old 04-22-2003, 04:08 PM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

As I started populating my zones, I realized it was a pain to figure out what models were available in each zone. So here is my first contribution: #fixmob

#fixmob [nextrace|prevrace|gender|nexttexture|prevtexture|n exthelm|prevhelm]

Start with #spawn, then use #fixmob with the different parameters to easily navigate through the different races, gender, textures and head textures (head only seem to work for giants). I'll look to add facial features shortly. Finish it off with #npcspawn and you're close to having a full ingame mob editor.

I just wish there was a way to skip innexistant textures... Anyone got any insight? Error returned by client maybe? Gonna look into this to next.

here is my patch file for client.cpp of EQEmu 0.4.4-DR1.

#patch client.cpp client.patch.

Code:
3568a3569,3665
> 	// WORKPOINT 1
> 	else if (strcasecmp(sep->arg[0], "#fixmob") == 0) {
> 		if (!sep->arg[1])
> 			Message(0,"Usage: #fixmob [nextrace|prevrace|gender|nexttexture|prevtexture|nexthelm|prevhelm]");
> 	// Series of functions to manipulate spawns.
> 		else if (strcasecmp(sep->arg[1], "nextrace") == 0) {
> 		// Set to next race
> 			if ((target) && admin >= 100) {
> 				if (target->GetRace() == 329) {
> 					target->SendIllusionPacket(1);
> 					Message(0, "Race=1"); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace()+1);
> 					Message(0, "Race=%i",target->GetRace()); 
> 				}
> 			}
> 		}
> 		else if (strcasecmp(sep->arg[1], "prevrace") == 0) {
> 		// Set to previous race
> 			if ((target) && admin >= 100) {
> 				if (target->GetRace() == 1) {
> 					target->SendIllusionPacket(329);
> 					Message(0, "Race=%i",329); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace()-1);
> 					Message(0, "Race=%i",target->GetRace()); 
> 				}
> 			}
> 		}
> 		else if (strcasecmp(sep->arg[1], "gender") == 0) {
> 		// Cycle through the 3 gender modes
> 			if ((target) && admin >= 100) {
> 				if (target->GetGender() == 0) {
> 					target->SendIllusionPacket(target->GetRace(), 3);
> 					Message(0, "Gender=%i",3); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender()-1);
> 					Message(0, "Gender=%i",target->GetGender()); 
> 				}
> 			}
> 		}
> 		else if (strcasecmp(sep->arg[1], "nexttexture") == 0) {
> 		// Set to next texture
> 			if ((target) && admin >= 100) {
> 				if (target->GetTexture() == 25) {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), 1);
> 					Message(0, "Texture=1"); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), target->GetTexture()+1);
> 					Message(0, "Texture=%i",target->GetTexture()); 
> 				}
> 			}
> 		}
> 		else if (strcasecmp(sep->arg[1], "prevtexture") == 0) {
> 		// Set to previous texture
> 			if ((target) && admin >= 100) {
> 				if (target->GetTexture() == 1) {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), 25);
> 					Message(0, "Texture=%i",25); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), target->GetTexture()-1);
> 					Message(0, "Texture=%i",target->GetTexture()); 
> 				}
> 			}
> 		}
> 		else if (strcasecmp(sep->arg[1], "nexthelm") == 0) {
> 		// Set to next helm.  Only noticed a difference on giants.
> 			if ((target) && admin >= 100) {
> 				if (target->GetHelmTexture() == 25) {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), target->GetTexture(), 1);
> 					Message(0, "HelmTexture=1"); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), target->GetTexture(), target->GetHelmTexture()+1);
> 					Message(0, "HelmTexture=%i",target->GetHelmTexture()); 
> 				}
> 			}
> 		}
> 		else if (strcasecmp(sep->arg[1], "prevhelm") == 0) {
> 		// Set to previous helm.  Only noticed a difference on giants.
> 			if ((target) && admin >= 100) {
> 				if (target->GetHelmTexture() == 1) {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), target->GetTexture(), 25);
> 					Message(0, "HelmTexture=%i",25); 
> 				}
> 				else {
> 					target->SendIllusionPacket(target->GetRace(), target->GetGender(), target->GetTexture(), target->GetHelmTexture()-1);
> 					Message(0, "HelmTexture=%i",target->GetHelmTexture()); 
> 				}
> 			}
> 		}
> 	}
4350a4448
> 			Message(0, "  #fixmob [nextrace|prevrace|gender|nexttexture|prevtexture|nexthelm|prevhelm]");
Reply With Quote
  #7  
Old 04-22-2003, 08:38 PM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

Yes, this is the kind of post we are looking for, but in its own thread. I'll leave the post here though as it is a very good example of exactly what we are looking for when people submit code.
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #8  
Old 04-23-2003, 01:15 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

Oh, sorry. Figured this was the thread you wanted snippets in. Guess I wasn't myself, Leafs were losing game 7 by 5 goals!
Reply With Quote
  #9  
Old 05-12-2003, 05:16 AM
Armanthuz
Sarnak
 
Join Date: Apr 2003
Posts: 72
Default quick hack to combat code that seems more realistic..

blearg!
Reply With Quote
  #10  
Old 05-13-2003, 04:43 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

I will repeat, do NOT post the snippets and diffs here, this is just a general information thread on HOW to submit them, in their OWN THREAD
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #11  
Old 06-16-2003, 11:35 PM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default

Quote:
Originally Posted by Shawn319
StarTeam has a built in "Visual Diff" and "Visual Merge" tool we use all the time (on top of using ST for our CVS).. if you want these tools you can download StarTeam at www.starbase.com and get an evaluation key..

On the other hand, i'm sure there are hundreds of other similar tools that do the same job (maybe even better).
I have never been able to get that url to work, always a down page. Any other place I could get something to create diff files?
Reply With Quote
  #12  
Old 06-16-2003, 11:39 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Try this one..

http://www.borland.com/features/
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #13  
Old 06-17-2003, 05:23 PM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default

thanks! DL'ing it right now =)
Reply With Quote
  #14  
Old 06-20-2003, 07:47 AM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default

bah, not sure WHAT i downloaded, but it had nothing to do with a version anything :evil:

how about a filename to look for?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:25 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3