Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
"subspace.bin" in memory?

 
Post new topic   Reply to topic Printable version
 View previous topic  New smiles for MGB Post :: Post Re: Going on Vacation  View next topic  
Author Message
Qndre
Server Help Squatter


Gender:Gender:Male
Joined: Jan 25 2004
Posts: 295
Offline

PostPosted: Sat Mar 20, 2004 10:36 am   Post maybe stupid    Post subject: "subspace.bin" in memory? Reply to topic Reply with quote

The file "subspace.bin" cannot be loaded and stored in a variable by my application because it produces an overflow. I need to load the "subspace.bin" to generate the security checksum. What should I do?
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sat Mar 20, 2004 10:49 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

look at the new MERVBot(.40), Catid has managed to do away with needing subspace.bin in the directory
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Qndre
Server Help Squatter


Gender:Gender:Male
Joined: Jan 25 2004
Posts: 295
Offline

PostPosted: Sat Mar 20, 2004 11:08 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

I've got the source of a very old version of MERV scripted in Basic and this version isn't able to send checksums. The new version is scripted in C (!!!!!!!) and I am not able to read/write C.
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Mar 20, 2004 12:12 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Maybe this is the point where you should take the advice of ekted, and others, learn it.
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
nintendo64
Seasoned Helper


Age:40
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 104
Location: Dominican Republic
Offline

PostPosted: Sat Mar 20, 2004 1:00 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Code: Show/Hide
Public SubspaceBin As String

Public Sub LoadSubspaceBin()
    Dim Handle As Integer
    '
    On Local Error GoTo Error_LoadSubspaceBin
    '
    Handle = FreeFile
    Open App.Path & "\SUBSPACE.BIN" For Binary As #Handle
    '
    If LOF(Handle) <> 630784 Then
        MsgBox App.Path & "\SUBSPACE.BIN is corrupted." & vbCrLf & "Exiting.", vbCritical, "Error"
        Unload Me
    Else
        SubspaceBin = String(630784, " ")
        Get #Handle, 1, SubspaceBin
    End If
    '
    Close #Handle
    '
    Exit Sub
    '
Error_LoadSubspaceBin:
    MsgBox "Can't find " & App.Path & "\SUBSPACE.BIN." & vbCrLf & "Exiting.", vbCritical, "Error"
Unload Me
End Sub


That's how you store it in VB.

Example in Pascal

Code: Show/Hide

var
SubSpaceBin:array[1..630784] of Char;

procedure LoadSubSpaceBin();
var
F:File;
begin
if not FileExists('subspace.bin') then exit;

    FillChar(SubSpaceBin,SizeOf(SubSpaceBin),Chr(0));
    AssignFile(F, 'subspace.bin');
    try
      Reset(F, 1);

      BlockRead(F, SubSpaceBin, SizeOf(SubSpaceBin));
    finally
      CloseFile(F);
   end;
end;


-nintendo64
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sat Mar 20, 2004 1:42 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Quote:
The new version is scripted in C (!!!!!!!)

It's actually C++
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sat Mar 20, 2004 4:53 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

nintendo64 wrote:
That's how you store it in VB.


Wow VB is so gay. icon_smile.gif
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
nintendo64
Seasoned Helper


Age:40
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 104
Location: Dominican Republic
Offline

PostPosted: Sun Mar 21, 2004 12:41 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Mr Ekted wrote:
[..]



Wow VB is so gay. icon_smile.gif


yes, you have to write so much =/

btw Ekted, what is the first programming language you learnt?

-nintendo64


Last edited by nintendo64 on Sun Mar 21, 2004 1:30 am, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sun Mar 21, 2004 1:04 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

BASIC, 1977
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Sun Mar 21, 2004 2:44 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Mr Ekted wrote:
BASIC, 1977

Ohh... I was QBASIC back in sometime or another. I still love that Monkey game that you threw bananas that explode at each other. Now I must go find it...
Back to top
View users profile Send private message Add User to Ignore List Send email
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sun Mar 21, 2004 6:30 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

After BASIC, it was: Fortran (1982), Pascal (1983), Assembler (1984), C (1984). I picked up C++ at work (1993). I've also played with several other langauges. So far nothing comes close to C. It's at the right level to be able to do exactly what you want in a manner than you don't have to jury-rig every little thing (like using a "string" as a buffer in BASIC). C++ is a hack.
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Mar 21, 2004 12:50 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Heh mine was TI-BASIC for their calcs.

Here's gorilla.bas Miney, great game icon_biggrin.gif
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.




Gorilla.bas

gorilla.rar - 8.41 KB
File downloaded or viewed 8 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 22 page(s) served in previous 5 minutes.

phpBB Created this page in 0.934027 seconds : 37 queries executed (88.6%): GZIP compression disabled