GTA2 ScriptPad

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GTA2 ScriptPad

Post by elypter »

ok thanks
yur sa'nok ngeyä
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Ok, got it to work. but this tyty file is incomplete and miss2 throws some errors
but anyway, it works:

Instead of

Code: Select all

//{ // Header
You could just type:

Code: Select all

//{ Header
It will look like:

[+] Header

Now i will try to add subs with ":".



Btw: i could add autocompletion for //{, ie, if you type //{ it will automatically add the ending //}

It will close any open //{ you have there.
So you don't have to worry about them. it will close them where your cursor is and when you hit enter.
Always wear safety glasses while programming.
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GTA2 ScriptPad

Post by elypter »

oh, that would be nice

btw: what is the menue option "insert from template" for?

is that some kind of scriptlet including? i also had an idea about a feature that could auto add some small script pieces. for example: give rocketlauncher on respawn, autodelete mines and oil, respawning cars or some of the powerups from tyfo army lite or bc ac.
yur sa'nok ngeyä
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Well yes, it could be modified to add snippets, but atm it just inserts the template
Ben or Pyro suggested here.

So you don't have to start with empty sheet.
I don't even remember if it works in the version i released.

I got the subs with return's working.
Now it folds the subs also.

Ex:

Code: Select all

apcbots:
// ...
RETURN

Code: Select all

[+] apcbots
Will try to post some screenshot with tyty_army and all that folding.
Always wear safety glasses while programming.
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GTA2 ScriptPad

Post by elypter »

very nice. thanks
yur sa'nok ngeyä
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Just to let you know.
I was on holidays 9 days. Then i went back to work and now slowly making my way up again.
What i mean is that after such break from work, i get very tired first days on work and i just don't want to do anything on my pc.
Im just too tired.

Now, 2 days i will have first aid training (7 hours in a row), after that i must go to the work for 6 hours, and in total my day will be 13 hours long these two days.

After that i probably can continue my work on ScriptPad.

If i feel better, i can continue even before that.


Im still maybe lurking on forums, watching any updates in different threads, but i probably wont code.

Hopefully you guys understand me.
All the best to you.
Always wear safety glasses while programming.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 ScriptPad

Post by Cuban-Pete »

hey, no hurry, no push. you should only do it for fun and learning and we are not your customers. :)
"Mmmm, your eyes are so beautiful."
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Training is over and i got my new big First Aid Certificate :)
My old one expired, it was from driving school, from 2007 or something.

The lecturer was very hot chick. I feel like i miss her now, lol.
I must check my papers, maybe i have her phone number :D

Tomorrow is last day of work, then i can rest.

But now i will look where i left the ScriptPad.
Will read my textfiles (read: logs).
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 ScriptPad

Post by T.M. »

B-$hep wrote:The lecturer was very hot chick. I feel like i miss her now, lol.
I must check my papers, maybe i have her phone number :D
not that im interested in your personal life in any way, nor that this should be the place to talk about these things, but as you took this on topic... didnt you have a wife ?
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 ScriptPad

Post by Cuban-Pete »

Cuban-Pete is also wondering were 'wife' fits in this story...
"Mmmm, your eyes are so beautiful."
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

I knew somebody will mention this.
You take this lecturer chick story too seriously guys, come on.
She is beautiful, thats all. But anyway most of our womens are beautiful in Estonia.
Even Google says that, lol.

Of course i have my own wife and i never would think about replacing her, there isn't anywhere woman like she is, in the world. Just one.

So don't worry guys.
I will try to work on ScriptPad now.

So i could release a better beta soon. The first released one was pretty bad.
Sorry about that. But as i said, i was coding mostly at night, after work, when i am pretty tired.
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 ScriptPad

Post by T.M. »

B-$hep wrote:I knew somebody will mention this.
You take this lecturer chick story too seriously guys, come on.
i wasnt "serious" but just found it weird... anyways, i prefer to not talk about personal life on the public internet boards if you dont want people to talk about it ;) also one bad thing is that if you write something here, it will never get deleted from the internet... so you might end up in situation where your wife reads some stuff you said even when you were just "joking", but she wouldnt believe you etc... not to mention that i've been reading news lately and many people are getting fired from their jobs when they talk "bad" stuff about their bosses on the facebook... and i've heard many bosses actually search stuff from their employees on the internet just to check what kind of people they are hiring. of course this wont affect you, but its a good reminder that you dont really need to talk about personal life on the public internet, it serves no function at all (as you already got a bit annoyed that we replied to those parts of your messages). so, i prefer to put those in private conversations. its a bit weird to read people's personal life stuff on public boards (especially when nobody actually asked them about it), because it gives the impression the person wants to talk about his personal life, but as you reacted, you dont want to talk about it. so, its easier for us all to not talk about it :) oh and i hope you dont take this offensive or anything, just trying to give (bad?) advices :D
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

No problems. I will keep that in mind.

Actually it's good that you talked about bosses sniffing around on the net.
A bit scary thing :D

I must remember that. He doesn't know my email yet, so probably i wont give him the one i have atm, if he asks.

Thanks T.M.
Always wear safety glasses while programming.
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

I attached new version to my first post in this topic.
Also small homepage for it:

http://e36v4.co.cc/gta2scriptpad/

The server may be busy sometimes, so check it later again.

Download, run, test, as much you can the ScriptPad.
And report any bugs you may find.

I had a long break from this project, so i don't remember all the bugs.
I looked the previous bug reports here and fixed what i have found.

But i don't think that all of them got fixed. So please test it.
Always wear safety glasses while programming.
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GTA2 ScriptPad

Post by BenMillard »

I disagree with "outdated MisPad". It's a great tool and still the current one, unless yours suddenly got much more reliable. ;)

Maybe I can test this tomorrow.
User avatar
Sektor
Boss
Boss
Posts: 1450
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

This has the classic Delphi Induc virus. I cleaned it and attached cleaned file. There were 10 downloads before that. It is a harmless virus that just adds 5kB to the exe. It can only spread if you have Delphi 4 or 7 installed and you compile with it.
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Damn, i must have checked it.
But forgot.

I will do it next time.

Thanks Sektor.


EDIT: i updated the version with your 7z on my homepage.


I will triple test my files in future before uploading.

Sorry.
Always wear safety glasses while programming.
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GTA2 ScriptPad

Post by BenMillard »

LOL, please put the download link in the main content of the homepage! Only takes one line on the screen. Took me 5 minutes to figure out how to actually download the darn thing. :oops:

More thoughts:
  1. Don't package a folder in the archive. Just put the files directly into the archive.
  2. Don't set the light-on-dark theme as the default. Default is dark-on-light in Windows.
  3. Text is illegible in the light-on-dark theme.
  4. Seriously. Especially the comments. Can hardly even see where they are, let alone read them!
  5. Window size and position is saved. Yay!
  6. Crashed when setting setting "Active Color Scheme" to MisPad Theme. Reached this setting by clicking Tools > Options menu, then Colors tab.
    ScriptPad wrote:Cannot open file "C:\Program Files\Rockstar Games\GTA2\tools\Script Editor (B-Shep)\Themes\MisPad.lcf". The system cannot file the file specified.
    There is a MisPad.syn file but no .lcf files in there.
  7. XP themes are applied thoroughly and sensibly throughout. Nice work!
  8. Icons in the toolbar are a bit jagged. Are they being stretched due to incorrect sizing? They should be 16 pixels high, most likely.
  9. Oh, really stupid and annoying bug: I just spent some time in the custom Syntax Highlighting interface. Clicked OK on it but when I clicked OK on Preferences window, all my changes were lost! I hate that!
  10. A few things in MisPad Theme are set to White so they are literally invisible! D'oh...
  11. Cannot close the program by clicking the 'red X'. Error message says "Access Violation [...]" but clicking OK does not close the program.
  12. File menu has an empty item after Exit, so maybe a Recent Files issue?
  13. Couldn't find dark.lcf.
I have a big CRT screen, so black is truly black and dark colours are truly dark. Most flatscreen monitors make black look like grey and dark colours aren't properly dark.

(EDIT) Aha, I found a mis2.lcf file next to EXE. Moved it to Themes folder and renamed to MisPad.lcf and now I have dark-on-light theme. Added a couple more bugs to that list.

Will test it some more next time I do some scripting.

(EDIT2) Added a couple more bugs after testing with Gustavob. It's tantalizing to see all these features but not be able to use them. Will take a lot of boring reliability work to make this a viable tool, from what I've seen today.
Last edited by BenMillard on 29 May 2011, 19:23, edited 2 times in total.
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Thanks alot Ben for all the info.

And the neverending problem with mis2.xxx file.
I guess i was too tired when i coded this.

I thought i fixed it in this release.

EDIT:

Also please test, the saving, loading, closing, "new" menu item work.
Does it closes correctly, saves it changes, asks the questions as it should, etc.

It should work fine, but im not sure 100%.

EDIT2: download link added to scriptpad main page.
And main homepage now redirects to scriptpad page.
Always wear safety glasses while programming.
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: GTA2 ScriptPad

Post by Gustavob »

Cannot open file "[...]\GTA2\data\mis2.lcf". The system cannot find the file specified
Says that when I try to open a .mis file with ScriptPad using Open With. Confirmed by BenMillard via GH

EDIT: also this:
"Access violation at address 00539331 in module 'GTA2 ScriptPad.exe'. Read of address 00000000"
when closing it using any methods: red X, task manager etc. Task manager will close it but clicking OK won't. Also in Ben's message, point 11
You just lost the game.
Post Reply