Search found 195 matches

by Nubcake
Tue May 27, 2014 5:52 pm
Forum: Coding Questions
Topic: What happens when Delay() is processed
Replies: 3
Views: 1524

What happens when Delay() is processed

This was meant to be a general question independent of language but never the less I chose to post it here: I've always wandered what does the CPU do when a program reaches a line that contains Delay() or in general a command that sleeps the current thread it is on. For example if I wrote an ...
by Nubcake
Sun May 04, 2014 12:13 am
Forum: Coding Questions
Topic: Sprite Blending
Replies: 0
Views: 1136

Sprite Blending

I was messing around with the blending mode creating some fire particles of different colors with textures I found online. I managed to create these nice looking flames:
http://i60.tinypic.com/2s64vv8.png
With red/green/blue textures like this one:
http://i61.tinypic.com/fz41sy.png

However I ...
by Nubcake
Thu May 01, 2014 7:19 pm
Forum: Coding Questions
Topic: Sine oscillation speed
Replies: 3
Views: 2097

Sine oscillation speed

I'm using the following code to create a wavy background effect of an image but the oscillation speed is too fast.


Pi.d = 3.1415926535897931
Phase.d = 0;
Amplitude = 10;
Waves = 2;
Angle.d = 0;

;Displays each row of pixels in the image with an offset to create the effect
For Count = 0 To Rows ...
by Nubcake
Sat Dec 21, 2013 7:17 pm
Forum: Coding Questions
Topic: File pointer
Replies: 0
Views: 623

File pointer

Hi

I'm creating a program for personal use to split and merge files > 2GB in size and I was wondering about a few things I hope the PB community can help me with :D

Is there a way I can get a pointer to the file I want to split without having to allocate a huge chunk of memory for it? Say I had a ...
by Nubcake
Sat Dec 21, 2013 7:03 pm
Forum: General Discussion
Topic: Translating another program
Replies: 11
Views: 3223

Re: Translating another program

Yeah I had some idea that during translation some strings would be longer and when I save it would overwrite with the new string and not work. Is there any way to overcome this?
by Nubcake
Sat Dec 21, 2013 5:53 pm
Forum: General Discussion
Topic: Translating another program
Replies: 11
Views: 3223

Re: Translating another program

PB wrote:Maybe you need a resource editor like this:

http://www.resedit.net/

It might be able to let you edit the strings.
This looks quite promising , thanks PB.
by Nubcake
Sat Dec 21, 2013 5:34 pm
Forum: General Discussion
Topic: Translating another program
Replies: 11
Views: 3223

Re: Translating another program

> it has come up with 27/47 detection ratio

Ew, no thanks. :(

Maybe a different hex editor would work?

That's the thing , I don't know what hex editor to use , I found one called PSPad editor but I'm pretty clueless how to use it to change the strings , don't really know whether it;s UTF-16 ...
by Nubcake
Sat Dec 21, 2013 5:13 pm
Forum: General Discussion
Topic: Translating another program
Replies: 11
Views: 3223

Re: Translating another program

Where can we download the program to see?
We might be able to give some advice then.

Edit: Here is the link to the program http://www.mediafire.com/download/ss2n97uviayzcf2/Eingling.exe
Just so you know I have scanned this using VirusTotal and it has come up with 27/47 detection ratio so don't ...
by Nubcake
Sat Dec 21, 2013 4:58 pm
Forum: General Discussion
Topic: Translating another program
Replies: 11
Views: 3223

Translating another program

I've come across a program where everything is written in chinese , I was wondering how would I go about changing all the the strings to english? I mean usually if I wanted to do something like this I would use a hex editor but the one I have won't work for something like this. Can anyone provide ...
by Nubcake
Wed Aug 28, 2013 4:56 pm
Forum: Coding Questions
Topic: Device interaction
Replies: 5
Views: 1995

Device interaction

Hi

Been wondering for a while now about this ; how can I interact with the devices connected to my computer? I.e Getting the device name or anything related to it.

Thanks
Nubcake
by Nubcake
Tue Aug 27, 2013 1:51 am
Forum: Coding Questions
Topic: GUI question
Replies: 15
Views: 5543

Re: GUI question

Slightly offtopic but that's the Hex Editor I use :D. Back to the original question I don't know for sure but it looks like that toolbar/rebar is ownerdrawn.

Nubcake
by Nubcake
Thu Aug 22, 2013 10:15 pm
Forum: Announcement
Topic: CLC Multifile Converter
Replies: 10
Views: 6664

Re: CLC Multifile Converter

When ever I open this it just closes?
Win 7 Ultimate x86
by Nubcake
Sat Aug 03, 2013 9:22 pm
Forum: Coding Questions
Topic: Drawing a line with Point
Replies: 2
Views: 1030

Re: Drawing a line with Point

wilbert wrote:If you do a forum search for Bresenham you will probably find what you need.
Thanks wilbert I found what I was looking for.
by Nubcake
Sat Aug 03, 2013 8:41 pm
Forum: Coding Questions
Topic: Drawing a line with Point
Replies: 2
Views: 1030

Drawing a line with Point

First of all it's not really what It seems , yes I know there is a LineXY function already but I really need to know how to draw a from a point(x1,y1) to (x2,y2) using Poiint.
Does anyone know how to do this?

Thanks
Nubcake
by Nubcake
Tue Jul 30, 2013 12:10 pm
Forum: Coding Questions
Topic: Structure pointer
Replies: 6
Views: 950

Re: Structure pointer



A pointer is only ONE adress ! If you want to store a structure here a simple example

Structure Pixel
x.l
y.l
EndStructure

Procedure someProc(someParam)

Protected *Point.Pixel = AllocateMemory(SizeOf(Pixel))

If *Point
Debug "pointer ready"
*Point\x = 1
*Point\y = someParam ...