Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Yuri Patrick

#61
Thank you, very much. I never noticed that in the file menu before. ;)
#62
Beginners' Technical Questions / AGT Files...
Mon 26/12/2011 21:55:47
Alright. I was wondering, how does one go about creating their own AGS Template (AGT)? I'm not seeing much about this anywhere. :(
#63
Thanks again, guys. :)
#64
After I compile my game, is there any way to change the icon of the game's .EXE file from the blue cup to something else?

I tried the simplest method I could think of (file properties in the Explorer), but there was nothing there for changing the icon. :(
#65
Thank you, very much, Steptoe. I had downloaded the pulldown menus plugin yesterday morning and didn't read any of the notes on it, so I couldn't get it to work. Then around 1:30 AM this morning, I found a note saying that I needed to disable the visual build in preferences and then it popped right up and started working.

I have a menu system which I am currently working on right now.

And I thank you very much for your ideas. I was working with a button gui but just couldn't get it to look right and was getting very frustrated. ;)

Thanks again.
#66
I've seen this topic addressed several times, but the links are all gone or down now. :(

Does anyone have any clue how to "emulate" the old style of menu back then? With the keyboard being the only way to navigate through them and such? I can get the bar to show up by hitting escape, but am not sure how to go about designing the actual menus. Just a blank, white bar for the moment. :(
#67
Alright. I searched for the original TCP/IP plugin thread and was brought here...

I was wondering, is the TCP/IP plugin high-level only or would it be capable of handling a connection to a Telnet server? Or would I need to write another plugin, a telnet plugin or something for it to be able to communicate with my game server?
#68
for line[20], when I go to compile and run the script, it tells me that line is an undefined token. :(

I never understood arrays, so found workarounds to manually making lists, unfortunately, none of my stuff was very dynamic because of that. :(

Nevermind. Fixed it. Wasn't thinking very clearly. Had some coffee and thought to myself, "*DUH!* I'm working with strings... So... String line[20];" and that fixed it right up. :)

Btw, I assume that for writing to a specific line in a file is possible as well? I just reverse the process in part?

Like first I read the file I wanna write to, count the lines, and then instead of just randomly writing WriteRawLines all over the place, I can then turn around and do something like line[count]=output.WriteRawLine(); and then line[1]=A new username;?
#69
I found this Post which has helped half of my problem. Writing stuff to a text file. Now, my next question is, I wrote all of the parameters for my database into the file (on the server side of course), and now I need to be able to pull them up singularly.

Like, I have the player's name, and need to pull only that string out, then I need to also pull up their title individually again, etc.

It's a little messy, but it's a database system that has been around for 30 years. It goes back to the ancient text games when they used nothing but the telnet protocol. ;) Good fallback, IMO, when nothing else appears to work or be feasible. :)
#70
Advanced Technical Forum / AGS 3.12sp2
Thu 26/08/2010 20:31:18
Why and how do I keep getting this wonderful error? All I did was change the game resolution and then it told me to reset the resolution of the imported background of room1. There was no background, so I just deleted room 1 and recreated it and now this error pops up whenever I try to run my game. I don't wanna have to redesign my GUI and stuff for a new bloody game. :(

Code: ags
---------------------------
Adventure Game Studio
---------------------------
An error has occurred. Please contact the game author for support, as this is likely to be a scripting error and not a bug in AGS.
(ACI version 3.12.1074)


Error: Unable to load 'room1.crm'. This room file is assigned to a different game.

---------------------------
OK   
---------------------------
#71
I've been reading through the scripting help file on working with files. If my understanding is correct, hopefully someone can verify this for me.

If I want to read the password string from a file, I would use the following code:

File *input = File.Open(charname+".data", eFileRead);
String buffer = input.ReadString("password");
input.Close();

And that should read the value for the password string into the buffer and then I can use buffer to verify the password, right?

Something along the vague lines of:

if clientinput=buffer
    then login complete

right?

I hope I'm getting this again. Been a loooong time since I did AGS Script.
#72
I spent this morning rethinking a problem of mine. I found a much simpler method of databasing for a MMO than using some silly MMO server directly. ;)

How would one go about using a character file on the server end of the connection? Like the ancient MUD servers did. They had a list of files organized by character name. Within those files were stored variables such as password, name, level, room and (in my case) coordinates. How would I go about not just opening the person's character file, which I think I already figured out with your previous example, but also accessing a specific line of text for comparison or reading?

In other words, how would I have the AGS server read the file then pull up the "password" line and the value of the password for verification? Or how would I read just the player's coordinates and/or room number? I don't want to read the entire file. I need to read specific lines. Do I need to use line numbers or something?
#73
Advanced Technical Forum / MMO Plugin...
Thu 26/08/2010 04:09:16
With all due respect and gratitude to those whom have tried to help me over the last several days to try and write a plugin that I need, I thank you. However, for some reason, I understand AGS Script an awful lot better than I have ever understood C++/C#.

As a result of the statement above, I must finally bend to my inabilities and request that someone hopefuly lend me hand and either walk me through writing a plugin for communication between AGS and SmartFoxServer or write it for me. I know this is a rather large request, but it is a necessary request.

I have SmartFoxServer Pro installed so that I have access to database communication for the login processes and where things may be stored, I have the demo projects for communication with the server via C#, now I just need some major help with getting the plugin written.

All I really need is the ability for AGS to query the server as to where objects go, where players are (coordinates and room numbers) and the login/logout processes. Unfortunately, as I stated, this is just a bit more challenging than I was prepared for.

If someone is willing to help me in this area, please send me a private message.  ???
#74
Advanced Technical Forum / Re: MMO Plugin
Wed 25/08/2010 21:01:58
*ROWR*! Stupid Microsloth. ;) I had no clue about that VC++ 2010 Redistro, now it works all around. Thanks. :)
#75
Advanced Technical Forum / Re: MMO Plugin
Tue 24/08/2010 19:35:43
*ROWR* It's still giving my a nutty time. New error and it won't let me cut and paste the error code. So, I'll just try to give the important bits, and I did copy the wrapper to the game directory, the _debug and compiled directories and now it is telling me:

Code: ags
The type initializer for 'agspluginPINVOKE' threw an exception.


It also turns around and says it still can't find the stupid dll:
Code: ags
System.DllNotFoundException: Unable to load DLL 'PLuginAPIWrapper.dll": The specified module could not be found. (Exception from HRESULT: 0x8007007E)


Seriously, I'm getting ready to cry over this. I need a Priest to Exorcise my computer. It's been doing wierd things like this all week. ;)

Anyway, here's some more info:
Code: ags
C:\Documents and Settings\Fr. Esau.PATRICK\Desktop\AGSRunCSharpPlugin\AGSRunCSharpPlugin\Demo\Source\RunCSharpPluginDemo\PluginAPIWrapper.dll
for the first location of the wrapper...

Code: ags
C:\Documents and Settings\Fr. Esau.PATRICK\Desktop\AGSRunCSharpPlugin\AGSRunCSharpPlugin\Demo\Source\RunCSharpPluginDemo\_Debug\PluginAPIWrapper.dll
for the second location and the third is:

Code: ags
C:\Documents and Settings\Fr. Esau.PATRICK\Desktop\AGSRunCSharpPlugin\AGSRunCSharpPlugin\Demo\Source\RunCSharpPluginDemo\Compiled\PluginAPIWrapper.dll
so that you can see for yourself that this silly dll is in all the right places. :(

Is it possible that the plugin could have corrupted somewhere along the line? I tried running the demo game and it still gives me more errors. :(

Code: ags
An exception 0xE0434F4D occured in ACWIN.EXE at EIP = 0x7C812AFB; program pointer is -23, ACI version 3.12.1074, gtags (0,0)

AGS cannot continue, thsi exception was fatal. Please note down the numbers above, remember what you were doing at the time and post the details on the AGS Technical Forum.
#76
Advanced Technical Forum / Re: MMO Plugin
Tue 24/08/2010 19:28:34
*sigh* Calin, it's meant as a compliment, really, but you keep making me feel dumber and dumber. I never would have thought of that. It's not even written anywhere that I have searched that any dependencies need to go further down the filestructures. ;)

Thanks. :)
#77
Advanced Technical Forum / Re: MMO Plugin
Tue 24/08/2010 19:10:21
Alright. What version of AGSEditor is your plugin for, Tzachs? I just tried opening demo for the C# runner and it gives me the exactg same error from the demo. Perhpas my copy is either corrupt or the wrong version? Lemme try running it off of AGS 3.1.
#78
Advanced Technical Forum / Re: MMO Plugin
Tue 24/08/2010 18:48:37
tzachs, I'm starting to think that AGS has a new AI subroutine that states it must stop me and only me at all costs. :( I can't find the stupid IAGSEngine call anywhere in the AGS wrapper for my own plugin so I figured I would try yours, and I got the following error:

Code: ags
Error: The type initializer for 'agspluginPINVOKE' threw an exception.
Version: AGS 3.1.2.82

System.TypeInitializationException: The type initializer for 'agspluginPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'PluginAPIWrapper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at agspluginPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_agsplugin(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
   at agspluginPINVOKE.SWIGExceptionHelper..cctor()
   --- End of inner exception stack trace ---
   at agspluginPINVOKE.SWIGExceptionHelper..ctor()
   at agspluginPINVOKE..cctor()
   --- End of inner exception stack trace ---
   at agspluginPINVOKE.IAGSEditor_RegisterScriptHeader(HandleRef jarg1, StringBuilder jarg2)
   at IAGSEditor.RegisterScriptHeader(String header)
   at AGSPluginSharp.AGSPlugin.EditorStartup(IAGSEditor editor)
   at AGSPluginSharp.AGSExports.AGS_EditorStartup(IntPtr lpEditor)
   at AGS.Editor.NativePlugin.AGS_EditorStartup.Invoke(IAGSEditorForNativePlugins editor)
   at AGS.Editor.NativePlugin.StartPlugin()
   at AGS.Editor.NativePlugin.set_Enabled(Boolean value)
   at AGS.Editor.Components.PluginsComponent.CommandClick(String controlID)
   at AGS.Editor.GUIController._mainForm_OnMenuClick(String menuItemID)
   at AGS.Editor.ProjectTree.ContextMenuEventHandler(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


The problem with that error message is that the PluginAPWrapper.dll file is in my AGS directory along with the AGSRunCSharpPlugin.dll file. :(

I don't get this.
#79
Yes. I know that, but it is not accepting it. I have VS C# 2008 and am "using AGS.Types;" but when I try to compile with IAGSEngine anywhere in my code, it crashes and says I am missing a directive.
#80
Alright, back in the original post for this topic is the following:

"Register the script function in EngineStartup:
Code: ags

private AddNumbersDel del;
public void EngineStartup(IAGSEngine engine)
{
   del = new AddNumbersDel(AddNumbers);
   IntPtr address = Marshal.GetFunctionPointerForDelegate(del);
   engine.RegisterScriptFunction("AddNumbers", address);
}



Where in the world is IAGSEngine?! I have AGS Types but IAGSEngine is not in there. Is my AGS broken?
SMF spam blocked by CleanTalk