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 - aedwards00

#1
Hmm well their customer service person was not hugely helpful - if you cant choose a shipping option on the website it's not available. They list it as a CBS exclusive product, so sadly no other suppliers, and I have tried ebay with no success :s Thanks for the suggestions though anyway.

So I guess if anyone from the US can help by posting the parcel onwards that would be great, just send me a pm, otherwise no worries and i'll find something else ^^
#2
I havent, but might be worth a shot. My inclination was that they wouldnt be able to, as they do offer international shipping for most of their products, but the drink seems to be specifically excluded.

[edit] Think i might have made up that $20 shipping cost i came up with earlier, cant figure out where i got it from now

Actually there seem to be a lot of things they wont ship internationally, but they do specifically state that they wont, as opposed to just having the option missing, cant hurt to send them an email I guess though
#3
Hey, I've got a bit of a strange request for information here.

I'm hoping to buy http://cbs.seenon.com/detail.php?p=276931&v=All (caffeinated energy drink) and this http://cbs.seenon.com/detail.php?p=263300 (cup) as part of a birthday present for a friend. As far as I can see, the CBS store seems to be the only place this is available, but they won't ship this product outside of the US. I live in the UK and my friend is in Sweden, so my question is, is it theoretically possible to order to someone in the US, then them personally ship the parcel to Sweden? Or would this break some kind of import/export law? I'm thinking that may be the reason international shipping is unavailable in the first place.

If it would be possible, does anyone have a rough idea of the cost? I reckon the total parcel weight would be in the region of 1.5-2kg, and from looking at the USPS website that seemed to be around $20 with a fairly slow and cheap shipping method, but I'm not certain I've looked at the right part of their various tables. Does that sound like a realistic amount.

Lastly, and maybe a bit of a stretch as I'm not exactly a well known or long standing member here, but would anyone potentially be willing to do this for me? I would of course pay for the order myself, and could send the postage cost via paypal or something in advance once you know the cost, so there wouldnt be any financial risk involved.

There's no rush on this, there's 6 or 7 weeks to go before their birthday still, but if anyone can provide info or help just post or pm me  :)

Thanks

Adam
#4
Critics' Lounge / Re: new background 2/5
Wed 23/06/2010 23:36:55
I think what icey is after is for the sphere to span the full width of the window, without any space as in the youtube vid, and also wonders if it would still work with '3d' objects such as trees/houses etc which come off the surface of the sphere
#5
Perhaps something along the lines of "You're not the only one in the police force!" or "There are other police involved besides you!"

To me those sound a bit more idiomatic as Snarky says.
#6
I thought as much  >:(

I've kind of worked around the problem though by creating separate arrays initialised with the right values, then looping to copy from these into the arrays inside the structs. Its a bit ugly having a load of extra arrays hanging around but it gets the job done  :P

Thanks to both for your suggestions though :)
#7
Ah I think I didn't make clear that I have a set of specific values that I need to put into each array, each in a specific element.
#8
Hey, this isnt specifically an AGS problem but a general c++ one. I figured someone here might be able to help anyway though.

Is it possible to create an a structure containing an array, then create an array of those structures, and then assign values to each array element all in one go?

To illustrate:

Code: ags

struct Mystruct {
  int intarray[26];
}



Mystruct structarray[5];

structarray[0].intarray[26] = {VALUES HERE};


My coding is pretty rusty so there might be some really obvious errors in there, but thats the general effect I'm trying to achieve. If I remember right then I don't think it is possible, but I just don't really want to have to manually assign 26 values into each of 8 different arrays.
#9
Just to make a minor correction to Danman's solution, I think the correct syntax for the function in question is

Code: ags

if (player.HasInventory(iKey)) {  // where iKey could be any relevant item
    Dialog01.Start();
}
else Dialog02.Start();
#10
Aha thanks both, I think I pretty much get it now, you'll hear from me soon if not :)
#11
Sorry missed that out above, version 3.1 SP1
#12
Perhaps you have some modules that I dont?
The AGS manual says: on pointers - "there is no new or delete keyword"
on importing functions -
"import function my_function_name (parameters);

Where my_function_name is the name of the global script function, and parameters is a list of the TYPES ONLY of the parameters it takes".

Having said that, I'll give it a go :p

EDIT:  Using your method i get the following error

"Failed to save room room1.crm; details below
room1.asc(3): Error (line 3): Expected integer value after '='"

The line in question being
Code: ags

int combination = new int[6];

#13
Maybe I'm being stupid but is this possible in AGS? I've tried the method I'm used to from C/C++ by just passing the address of the first element but this gives me a type mismatch error. Also, it's not possible to create pointers to ints? I've looked in the manual for arrays and pointers but neither seem to have too much useful information.

About my closest attempt so far goes like this

Code: ags

// In globalscript.asc

function Init_Safe(int *newcombination)
{
    DO STUFF HERE
}


// in room script file

import function Init_Safe(int*);
int combination[6];

function room_AfterFadeIn()
{
    Init_Safe(combination);
}



This tells me that I can't create a pointer to an unmanaged type.
I have also tried using "int combination[]" in the function declaration to no avail.

Also, is it not possible to initialize a whole array when you declare it? It seems a bit tedious to do each element manually.


Thanks for any help
#14
Thats a good idea thanks, with my test sprite it seemed fine for 45/90 degree angles, but when i tried 10 for example it got worse and worse as you say. Now I just gotta dig out all that geometry thats buried somewhere in my head, took me 5 mins to remember the equation for a circle  :-\

Edit: In fact come to think of it I guess there's not really much need to have the rotate function at all if I create enough sprites, I guess I just need to find the right balance depending on how many positions I want the tumbler to have.

Edit again: I just know I'm gonna want a switch statement in here somewhere :(
#15
Cheers, I had a quick fiddle with it, and so far just got 2 buttons that rotate another image one way or the other. However, the image degrades pretty badly with each rotation :s, it there any way to avoid this with better sprite design, or smaller incremental rotations or something? For now i was just using a test sprite 44x44 pixels - a black outlined white filled circle, with a red cross through it.

Possibly I didnt make it perfectly symmetrical and thats causing the problem
#16
Hey, I'm thinking that I would like to create a custom GUI for a safe that I have in a particular room. However, I want it to be a 'classic' safe, with a tumbler lock rather than a keypad.

What I would love is if the player can actually rotate the tumbler by clicking on it and dragging the cursor in a circle, if that makes sense. I've found the entry in the manual on dynamic sprites and how to rotate them, but I'm not sure if/how that can be applied to GUIs. I also don't really know where to begin with the click-dragging part.

I'm not after anyone to write great chunks of code for me, but if someone can point me in the right direction, or at least warn me off if it will be horrendous to code I'd appreciate it.

Thanks  :)
#17
I'm really sorry for this, I know making fun of spelling/grammar is low, but put up a shed lol :P
#18
I'm sure you're probably aware of it, but in each screenshot there seems to be half of a leg floating around :s
#19
Very quick question, am I likely to run into problems later on if I edit the Unhandled() function to give me different responses when i pass if a value of -1? This is what I've done currently to get new defaults when the room is dark, and it seems to work fine so far. It would let me use the same situation later in the game if I wanted too.
#20
Thanks to both of you :) I think between the 2 methods I can make something work
SMF spam blocked by CleanTalk