tgghaus.com
tgghaus.com
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 Combat PA Forums
 General Chit Chat
 Mod Builder version 1.0
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/09/2003 :  13:03:46  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Hey everyone, I am in the middle of making a mod maker for tribes2. I am doing it with Microsoft Visual Basics(I tried C++ but its too hard). I got done all the "Forms" and just need to edit it to make it insert the "mod" code. It will hopefully be done within 3 weeks. Just wanted everyone to know!!!

Little Pike


t0 pIkE i$ t0 \/\/i/\/

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/09/2003 :  13:17:42  Show Profile  Visit Little Pike's Homepage  Reply with Quote
I have just added the edit window, and the load and save windows are not hooked up yet. I will post a version that you can check out... It will not put any code into a mod, it will just let you see kinda what its like. Thanks

Little Pike

Go to Top of Page

na85
Incredibly Wordy Bastard

1404 Posts

Posted - 12/09/2003 :  15:12:12  Show Profile  Visit na85's Homepage  Send na85 an ICQ Message  Reply with Quote
When you get a working version, make sure that you run some sample code output through a syntax checker before you release it.

They call me Sodium
Go to Top of Page

Genosyde
Tribes Geek

327 Posts

Posted - 12/09/2003 :  15:22:39  Show Profile  Send Genosyde an AOL message  Reply with Quote
I dont get it.

I'm a Visual Basics Expert, i'm kind of interested to see what your doing and how your doing it.

_____________________________
My Blaster Auto-Aim Script is teh ****.
Go to Top of Page

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/09/2003 :  16:07:59  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Ok "na85". For "Geno", Well i am just using a bunch of regular "Forms". I am kinda new to VB, but it is working pretty well so far. I have everything set up cept for what button enters what code... I will be emailing a "Modder" soon asking about that(i know nothing about modding). I will ask my dad if i can compile it tonight and post it on a FTP site so you can take a look. Thats all!

Little Pike
Go to Top of Page

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/09/2003 :  16:13:36  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Oh yeah I forgot... I will also be adding a status bar that updates, and how the heck do i get the tool bar buttons to work? I am just using the "Command" buttons. If geno could tell me that would be great! I'm just finishing adding the "New Vehicle Form". Thats all

Little Pike

Go to Top of Page

Genosyde
Tribes Geek

327 Posts

Posted - 12/09/2003 :  17:35:21  Show Profile  Send Genosyde an AOL message  Reply with Quote
Toolbar's work in cahoots with the ImageList control.

If you view the Toolbar's properties, you will see on the "General" tab, it allows you to set a specific ImageList Control to that Toolbar, enabling Icons/Graphics to be used on each individual button on a Toolbar. If you click the "Buttons" tab, you can add each button individual, and for each button you have to assign a "Key" Property, as you will see an empty field next to the word 'Key:'. "Key" allows you to set an indentifier for that exact button, easiest way is to letter them a-z (ie: First button is 'a', second button is 'b', third is 'c' etc.) through however many buttons you use. By doing this, you give Visual Basic a way to identify each button as individual. Now, how to code each individual button. Double Click on the Toolbar on your Form, and you open up your Code Window. Your Function should look something like:

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)

End Sub
(This is off my head, it may vary)


Start by simply typing the word "Button." in the Function. You should receive your available Properties in a list. Scroll down to "Key" in that list. By adding the code Button.Key, you've now just allowed Visual Basic to give you the Key Value of the button pushed. What I mean, is when you press the button that we assigned to "b", the "button.key" code filled in will have the value "b". Now, how to track each individual button used:


Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "a" 'this represents: If button assigned to 'a' pressed.
Msgbox "You pressed the first button"
Case "b" 'this represents: If button assigned to 'b' pressed.
Msgbox "You pressed the second button"
Case "c" 'this represents: If button assigned to 'c' pressed.
Msgbox "You pressed the third button"
End Select
End Sub


I hope you've learned Select Case Routine, is much more rounded and fast than using tons of 'If Then' Statements.

If you need more help, or need me to send you some example code, I can throw some together quick for you. Let me know.

_____________________________
My Blaster Auto-Aim Script is teh ****.
Go to Top of Page

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/09/2003 :  17:51:20  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Now... I am trying to use a regular command button for making an armor. When you click it i want the script to work, but i also want it to update a rich text box with spaces between armors. Like this:

Scout
Assault
Heavy

I can get it to update but not like that... Thanks

Go to Top of Page

Genosyde
Tribes Geek

327 Posts

Posted - 12/09/2003 :  19:30:00  Show Profile  Send Genosyde an AOL message  Reply with Quote
RichTextBox's work almost like an HTML webpage. Everything has to be formatted, but in Visual Basics code. In order to enter new lines into RTB's, you need to use either Chr(13), vbNewLine or vbCrLf. Something like:

RichTextBox1.Text = "Geno " & Chr(13) & "Little Pike " & Chr(13) & "Nate."


_____________________________
My Blaster Auto-Aim Script is teh ****.
Go to Top of Page

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/09/2003 :  19:38:49  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Hey, I mean it updates to that. Like they click New Weapon. Then it puts that in the Rich Text Box. And when they do it again it just adds another line down.... Thanks but that was not quite what i needed.

Little Pike


MAN! I have this program up to 13 screens now! lool thats alot

Go to Top of Page

Genosyde
Tribes Geek

327 Posts

Posted - 12/09/2003 :  20:05:40  Show Profile  Send Genosyde an AOL message  Reply with Quote
RichTextBox1.Text = "Geno"

... will take everything out and just say "Geno".

RichTextBox1.Text = RichTextBox1.Text & "Geno"

... will take the current contents of RichTextBox1 and add 'Geno' to the bottom.

RichTextBox1.Text = ""

... will clear the RichTextBox1 entirely.

_____________________________
My Blaster Auto-Aim Script is teh ****.
Go to Top of Page

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/10/2003 :  10:48:32  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Thanks soooo much! Now i can start on the scripting!

Little Pike

Go to Top of Page

Little Pike
Super Noobie! ;)

165 Posts

Posted - 12/10/2003 :  10:57:06  Show Profile  Visit Little Pike's Homepage  Reply with Quote
Yeah... But how do i make it add "Geno" Skip a line and add "Pike"?

Go to Top of Page

Genosyde
Tribes Geek

327 Posts

Posted - 12/10/2003 :  18:12:18  Show Profile  Send Genosyde an AOL message  Reply with Quote
Just add two Return Functions (Chr(13), vbNewLine or vbCrLF)

RichTextBox1.Text = "Geno " & Chr(13) & Chr(13) & "Pike"


_____________________________
My Blaster Auto-Aim Script is teh ****.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
tgghaus.com © 2009 Integral Corporation Go To Top Of Page
Snitz Forums 2000